Skip to content
Snippets Groups Projects
Commit fb19cb07 authored by andy's avatar andy
Browse files

BUG: pimpleControl: do not store *PrevIter* fields

parent 84d098c7
Branches
Tags
No related merge requests found
...@@ -41,12 +41,16 @@ void Foam::solutionControl::storePrevIter() const ...@@ -41,12 +41,16 @@ void Foam::solutionControl::storePrevIter() const
{ {
GeoField& fld = const_cast<GeoField&>(*iter()); 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) if (debug)
{ {
Info<< algorithmName_ << ": storing previous iter for " Info<< algorithmName_ << ": storing previous iter for "
<< fld.name() << endl; << fName << endl;
} }
fld.storePrevIter(); fld.storePrevIter();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment