mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Enabled equation solve deactivation by checking if maxIter = 0
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user