Merge pull request #4677 from akva2/set_vappars

added: set vappars in fluidsystem/pvt at start of report step
This commit is contained in:
Bård Skaflestad 2023-06-01 20:04:01 +02:00 committed by GitHub
commit 091ccf77ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}
/*!