ENH: Enabled equation solve deactivation by checking if maxIter = 0

This commit is contained in:
andy
2012-09-26 10:01:23 +01:00
parent bc3de98ee4
commit a0a6be49c5

View File

@ -65,6 +65,15 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solve
<< endl;
}
label maxIter = -1;
if (solverControls.readIfPresent("maxIter", maxIter))
{
if (maxIter == 0)
{
return solverPerformance();
}
}
word type(solverControls.lookupOrDefault<word>("type", "segregated"));
if (type == "segregated")