diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlTemplates.C b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlTemplates.C index a0f0a3579bb2d4709ad80f3dd79c6c88e4e0b88a..2b20a75ae22e0b44b09a75540439198a45fe0c4a 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlTemplates.C +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlTemplates.C @@ -41,12 +41,16 @@ void Foam::solutionControl::storePrevIter() const { GeoField& fld = const_cast<GeoField&>(*iter()); - if (mesh_.relaxField(fld.name())) + const word& fName = fld.name(); + + size_t prevIterField = fName.find("PrevIter"); + + if ((prevIterField == word::npos) && mesh_.relaxField(fName)) { if (debug) { Info<< algorithmName_ << ": storing previous iter for " - << fld.name() << endl; + << fName << endl; } fld.storePrevIter();