mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-14 04:21:56 -06:00
Fix DRVDT Initialisation Conditional
It does not make sense to pass episodeIdx && maxDRv_.empty() as an argument to drvdtActive().
This commit is contained in:
parent
58ce7cbc7c
commit
a73cb6ee93
@ -103,7 +103,7 @@ init(std::size_t numDof, int episodeIdx, const unsigned ntpvt)
|
||||
dRsDtOnlyFreeGas_.resize(ntpvt, false);
|
||||
lastRs_.resize(numDof, 0.0);
|
||||
}
|
||||
if (this->drvdtActive(episodeIdx && maxDRv_.empty())) {
|
||||
if (this->drvdtActive(episodeIdx) && maxDRv_.empty()) {
|
||||
lastRv_.resize(numDof, 0.0);
|
||||
maxDRv_.resize(ntpvt, 1e30);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user