Added rest of WGRUPCON handlingin Well and Schedule

This commit is contained in:
Kristian Flikka
2014-02-21 12:48:36 +01:00
parent e4eb60be4b
commit b3dc1ea5ca
9 changed files with 101 additions and 3 deletions

View File

@@ -401,6 +401,16 @@ namespace Opm {
well->setAvailableForGroupControl(currentStep, availableForGroupControl);
well->setGuideRate(currentStep, record->getItem("GUIDE_RATE")->getRawDouble(0));
if (record->getItem("PHASE")->defaultApplied()) {
well->setGuideRatePhase(currentStep, GuideRate::UNDEFINED);
}
else {
std::string guideRatePhase = record->getItem("PHASE")->getString(0);
well->setGuideRatePhase(currentStep, GuideRate::GuideRatePhaseEnumFromString(guideRatePhase));
}
well->setGuideRateScalingFactor(currentStep, record->getItem("SCALING_FACTOR")->getRawDouble(0));
}
}