diff --git a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrixSolve.C b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrixSolve.C index 0cd882fe5463391e6c22fa1715279e7563232e0c..d83681cba132ed8d27c8f74399a37633da972a08 100644 --- a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrixSolve.C +++ b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrixSolve.C @@ -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")