From d199b6b6d083138061fcbc2b523119703b5c74f8 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sun, 26 Jun 2011 22:44:30 +0100 Subject: [PATCH] Formatting --- applications/solvers/incompressible/pimpleFoam/pEqn.H | 4 ++-- applications/solvers/incompressible/pimpleFoam/pimpleFoam.C | 2 +- applications/solvers/stressAnalysis/icoFsiFoam/solveSolid.H | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/solvers/incompressible/pimpleFoam/pEqn.H b/applications/solvers/incompressible/pimpleFoam/pEqn.H index 41f99bb54..3e51fface 100644 --- a/applications/solvers/incompressible/pimpleFoam/pEqn.H +++ b/applications/solvers/incompressible/pimpleFoam/pEqn.H @@ -23,8 +23,8 @@ for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++) if ( - oCorr == nOuterCorr-1 - && corr == nCorr-1 + oCorr == nOuterCorr - 1 + && corr == nCorr - 1 && nonOrth == nNonOrthCorr ) { diff --git a/applications/solvers/incompressible/pimpleFoam/pimpleFoam.C b/applications/solvers/incompressible/pimpleFoam/pimpleFoam.C index cdb7f5603..59229204b 100644 --- a/applications/solvers/incompressible/pimpleFoam/pimpleFoam.C +++ b/applications/solvers/incompressible/pimpleFoam/pimpleFoam.C @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) Info<< "Time = " << runTime.timeName() << nl << endl; // --- Pressure-velocity PIMPLE corrector loop - for (int oCorr=0; oCorr convergenceTolerance && ++iCorr < nCorr); + } while (initialResidual > convergenceTolerance && ++iCorr < nCorr); }