Ask for reference depth at timestep.

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

View File

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