diff --git a/src/finiteVolume/cfdTools/general/fvModels/fvModels.C b/src/finiteVolume/cfdTools/general/fvModels/fvModels.C index 9da5a876be..3b8704d522 100644 --- a/src/finiteVolume/cfdTools/general/fvModels/fvModels.C +++ b/src/finiteVolume/cfdTools/general/fvModels/fvModels.C @@ -108,7 +108,12 @@ Foam::IOobject Foam::fvModels::createIOobject void Foam::fvModels::checkApplied() const { - if (mesh().time().timeIndex() > checkTimeIndex_) + const label timeIndex = + mesh().time().subCycling() + ? mesh().time().prevTimeState().timeIndex() + : mesh().time().timeIndex(); + + if (timeIndex > checkTimeIndex_) { const PtrListDictionary& modelList(*this); @@ -128,7 +133,7 @@ void Foam::fvModels::checkApplied() const } } - checkTimeIndex_ = mesh().time().timeIndex(); + checkTimeIndex_ = timeIndex; } }