pimpleControl: Support field relaxation when the number of PIMPLE iterations = 1

This allows PIMPLE solvers to operate in SIMPLE mode
This commit is contained in:
Henry 2015-05-03 11:51:42 +01:00
parent b9f67ecadb
commit c2aebc2ef1

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -226,12 +226,8 @@ bool Foam::pimpleControl::loop()
if (corr_ <= nCorrPIMPLE_)
{
if (nCorrPIMPLE_ != 1)
{
Info<< algorithmName_ << ": iteration " << corr_ << endl;
storePrevIterFields();
}
Info<< algorithmName_ << ": iteration " << corr_ << endl;
storePrevIterFields();
completed = false;
}
}