mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05:00
added: set vappars in fluidsystem/pvt at start of report step
to properly handle vappars updates in SCHEDULE
This commit is contained in:
1 parent
ee6edd83a0
commit
9fa5f9d36d
1 file changed
+9
@@ -1038,6 +1038,15 @@ public:
|
||||
// Evaluate UDQ assign statements to make sure the settings are
|
||||
// available as UDA controls for the current report step.
|
||||
actionHandler_.evalUDQAssignments(episodeIdx, simulator.vanguard().udqState());
|
||||
|
||||
if (episodeIdx >= 0) {
|
||||
const auto& oilVap = schedule[episodeIdx].oilvap();
|
||||
if (oilVap.getType() == OilVaporizationProperties::OilVaporization::VAPPARS) {
|
||||
FluidSystem::setVapPars(oilVap.vap1(), oilVap.vap2());
|
||||
} else {
|
||||
FluidSystem::setVapPars(0.0, 0.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user