Ask for reference depth at timestep.

This commit is contained in:
Jørgen Kvalsvik 2016-11-22 14:22:09 +01:00
parent b026295376
commit ccd38c0cf7

View File

@ -235,7 +235,7 @@ void WellsManager::createWellsFromSpecs(std::vector<const Well*>& wells, size_t
well_names.push_back(well->name()); well_names.push_back(well->name());
{ {
WellData wd; WellData wd;
wd.reference_bhp_depth = well->getRefDepth(); wd.reference_bhp_depth = well->getRefDepth( timeStep );
wd.welspecsline = -1; wd.welspecsline = -1;
if (well->isInjector( timeStep )) if (well->isInjector( timeStep ))
wd.type = INJECTOR; wd.type = INJECTOR;