Fix DRVDT Initialisation Conditional

It does not make sense to pass

    episodeIdx && maxDRv_.empty()

as an argument to drvdtActive().
This commit is contained in:
Bård Skaflestad 2024-08-29 10:21:20 +02:00
parent 58ce7cbc7c
commit a73cb6ee93

View File

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