COMP: refactoring to resolve compiler warnings - see #886

This commit is contained in:
Andrew Heather
2018-06-20 10:56:04 +01:00
parent b6b2f430a3
commit 12e2142db8
15 changed files with 66 additions and 89 deletions

View File

@ -55,6 +55,13 @@ int main(int argc, char *argv[])
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
label ntot = 1;
forAll(K.nn(), idim)
{
ntot *= K.nn()[idim];
}
const scalar recRootN = 1.0/Foam::sqrt(scalar(ntot));
Info<< nl << "Starting time loop" << endl;
while (runTime.loop())

View File

@ -20,9 +20,3 @@
Kmesh K(mesh);
UOprocess forceGen(K, runTime.deltaTValue(), turbulenceProperties);
label ntot = 1;
forAll(K.nn(), idim)
{
ntot *= K.nn()[idim];
}
const scalar recRootN = 1.0/Foam::sqrt(scalar(ntot));