mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
GenericOutputBlackoilModule: check schedule directly for vappars
avoids a bool param in doAllocBuffers
This commit is contained in:
parent
ee6d34f4a4
commit
652a5a4646
@ -752,7 +752,6 @@ doAllocBuffers(const unsigned bufferSize,
|
|||||||
const bool substep,
|
const bool substep,
|
||||||
const bool log,
|
const bool log,
|
||||||
const bool isRestart,
|
const bool isRestart,
|
||||||
const bool vapparsActive,
|
|
||||||
const bool enablePCHysteresis,
|
const bool enablePCHysteresis,
|
||||||
const bool enableNonWettingHysteresis,
|
const bool enableNonWettingHysteresis,
|
||||||
const bool enableWettingHysteresis,
|
const bool enableWettingHysteresis,
|
||||||
@ -953,6 +952,8 @@ doAllocBuffers(const unsigned bufferSize,
|
|||||||
this->micpC_.allocate(bufferSize);
|
this->micpC_.allocate(bufferSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bool vapparsActive = schedule_[std::max(reportStepNum, 0u)].oilvap().getType() ==
|
||||||
|
OilVaporizationProperties::OilVaporization::VAPPARS;
|
||||||
if (vapparsActive) {
|
if (vapparsActive) {
|
||||||
soMax_.resize(bufferSize, 0.0);
|
soMax_.resize(bufferSize, 0.0);
|
||||||
}
|
}
|
||||||
|
@ -327,7 +327,6 @@ protected:
|
|||||||
const bool substep,
|
const bool substep,
|
||||||
const bool log,
|
const bool log,
|
||||||
const bool isRestart,
|
const bool isRestart,
|
||||||
const bool vapparsActive = false,
|
|
||||||
const bool enablePCHysteresis = false,
|
const bool enablePCHysteresis = false,
|
||||||
const bool enableNonWettingHysteresis = false,
|
const bool enableNonWettingHysteresis = false,
|
||||||
const bool enableWettingHysteresis = false,
|
const bool enableWettingHysteresis = false,
|
||||||
|
@ -184,7 +184,6 @@ public:
|
|||||||
substep,
|
substep,
|
||||||
log,
|
log,
|
||||||
isRestart,
|
isRestart,
|
||||||
problem.vapparsActive(std::max(simulator_.episodeIndex(), 0)),
|
|
||||||
problem.materialLawManager()->enablePCHysteresis(),
|
problem.materialLawManager()->enablePCHysteresis(),
|
||||||
problem.materialLawManager()->enableNonWettingHysteresis(),
|
problem.materialLawManager()->enableNonWettingHysteresis(),
|
||||||
problem.materialLawManager()->enableWettingHysteresis(),
|
problem.materialLawManager()->enableWettingHysteresis(),
|
||||||
|
@ -162,7 +162,6 @@ public:
|
|||||||
this->compC_.allocate(bufferSize, rstKeywords);
|
this->compC_.allocate(bufferSize, rstKeywords);
|
||||||
|
|
||||||
this->doAllocBuffers(bufferSize, reportStepNum, substep, log, isRestart,
|
this->doAllocBuffers(bufferSize, reportStepNum, substep, log, isRestart,
|
||||||
/* vapparsActive =*/ false,
|
|
||||||
/* enablePCHysteresis = */ false,
|
/* enablePCHysteresis = */ false,
|
||||||
/* enableNonWettingHysteresis =*/ false,
|
/* enableNonWettingHysteresis =*/ false,
|
||||||
/* enableWettingHysteresis =*/ false,
|
/* enableWettingHysteresis =*/ false,
|
||||||
|
Loading…
Reference in New Issue
Block a user