Re-formatting loop statements

This commit is contained in:
Hrvoje Jasak 2011-10-12 11:41:39 +01:00
parent d6de60b9bd
commit 893b7eec1a
35 changed files with 53 additions and 53 deletions

View file

@ -77,7 +77,7 @@ int main(int argc, char *argv[])
#include "fuhsEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -79,7 +79,7 @@ int main(int argc, char *argv[])
#include "hEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
#include "hEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -72,7 +72,7 @@ int main(int argc, char *argv[])
# include "setDeltaT.H"
for (int outerCorr=0; outerCorr<nOuterCorr; outerCorr++)
for (int outerCorr = 0; outerCorr < nOuterCorr; outerCorr++)
{
magRhoU = mag(rhoU);
H = (rhoE + p)/rho;
@ -118,7 +118,7 @@ int main(int argc, char *argv[])
psi = 1.0/(R*T);
p = rho/psi;
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rrhoUA = 1.0/rhoUEqn.A();
surfaceScalarField rrhoUAf("rrhoUAf", fvc::interpolate(rrhoUA));

View file

@ -65,7 +65,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
U = UEqn.H()/UEqn.A();

View file

@ -70,7 +70,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();
U = rUA*UEqn.H();

View file

@ -92,7 +92,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();

View file

@ -89,7 +89,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
rUA = 1.0/UEqn.A();

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
rUA = 1.0/UEqn.A();

View file

@ -71,7 +71,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
# include "TEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -8,7 +8,7 @@ if (oCorr == 0)
#include "hEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -80,7 +80,7 @@ int main(int argc, char *argv[])
volScalarField rUA = 1.0/UEqn.A();
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
U = rUA*UEqn.H();
phi = (fvc::interpolate(U) & mesh.Sf())

View file

@ -90,7 +90,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
rAU = 1.0/UEqn.A();

View file

@ -65,7 +65,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();

View file

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();

View file

@ -95,7 +95,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
rAU = 1.0/UEqn.A();

View file

@ -71,7 +71,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -78,7 +78,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
volScalarField rUA = 1.0/UEqn.A();

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
}
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
surfaceScalarField hf = fvc::interpolate(h);
volScalarField rUA = 1.0/hUEqn.A();

View file

@ -96,7 +96,7 @@ int main(int argc, char *argv[])
#include "hsEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -42,16 +42,16 @@ Description
int main(int argc, char *argv[])
{
#include "setRootCase.H"
# include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "readThermodynamicProperties.H"
#include "readControls.H"
#include "createFields.H"
#include "initContinuityErrs.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"
# include "createTime.H"
# include "createMesh.H"
# include "readThermodynamicProperties.H"
# include "readControls.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -59,22 +59,22 @@ int main(int argc, char *argv[])
while (runTime.run())
{
#include "readControls.H"
#include "CourantNo.H"
#include "setDeltaT.H"
# include "readControls.H"
# include "CourantNo.H"
# include "setDeltaT.H"
runTime++;
Info<< "Time = " << runTime.timeName() << nl << endl;
for (int outerCorr=0; outerCorr<nOuterCorr; outerCorr++)
for (int outerCorr = 0; outerCorr < nOuterCorr; outerCorr++)
{
#include "rhoEqn.H"
#include "gammaPsi.H"
#include "UEqn.H"
# include "rhoEqn.H"
# include "gammaPsi.H"
# include "UEqn.H"
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
# include "pEqn.H"
}
}

View file

@ -118,7 +118,7 @@ int main(int argc, char *argv[])
#include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
#include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -110,7 +110,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -83,7 +83,7 @@ int main(int argc, char *argv[])
#include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
#include "pEqn.H"
}

View file

@ -89,7 +89,7 @@ int main(int argc, char *argv[])
#include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -74,7 +74,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
# include "correctViscosity.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"
}

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
# include "UEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "p_rghEqn.H"
}

View file

@ -79,7 +79,7 @@ int main(int argc, char *argv[])
# include "UEqns.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
# include "pEqn.H"

View file

@ -1,7 +1,7 @@
{
// SIMPLE loop
for (int corr=0; corr<nCorr; corr++)
for (int corr = 0; corr < nCorr; corr++)
{
fvVectorMatrix UEqn
(