functionObjects::scalarTransport/phaseScalarTransport: Use int for the corrector loop

rather than label.
This commit is contained in:
Henry Weller
2019-07-15 22:29:10 +01:00
parent 67d3a8dc1b
commit 9bcbaea4a3
4 changed files with 7 additions and 7 deletions

View File

@ -409,7 +409,7 @@ bool Foam::functionObjects::phaseScalarTransport::execute()
// Solve // Solve
if (alphaPhi.dimensions() == dimVolume/dimTime) if (alphaPhi.dimensions() == dimVolume/dimTime)
{ {
for (label i = 0; i <= nCorr_; ++ i) for (int i=0; i<=nCorr_; i++)
{ {
fvScalarMatrix fieldEqn fvScalarMatrix fieldEqn
( (
@ -437,7 +437,7 @@ bool Foam::functionObjects::phaseScalarTransport::execute()
const volScalarField& rho = const volScalarField& rho =
mesh_.lookupObject<volScalarField>(rhoName_); mesh_.lookupObject<volScalarField>(rhoName_);
for (label i = 0; i <= nCorr_; ++ i) for (int i=0; i<=nCorr_; i++)
{ {
fvScalarMatrix fieldEqn fvScalarMatrix fieldEqn
( (

View File

@ -152,7 +152,7 @@ class phaseScalarTransport
scalar alphaDt_; scalar alphaDt_;
//- Number of corrector iterations (optional) //- Number of corrector iterations (optional)
label nCorr_; int nCorr_;
//- Residual volume-fraction //- Residual volume-fraction
scalar residualAlpha_; scalar residualAlpha_;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -189,7 +189,7 @@ bool Foam::functionObjects::scalarTransport::execute()
const volScalarField& rho = const volScalarField& rho =
mesh_.lookupObject<volScalarField>(rhoName_); mesh_.lookupObject<volScalarField>(rhoName_);
for (label i = 0; i <= nCorr_; i++) for (int i=0; i<=nCorr_; i++)
{ {
fvScalarMatrix sEqn fvScalarMatrix sEqn
( (
@ -209,7 +209,7 @@ bool Foam::functionObjects::scalarTransport::execute()
} }
else if (phi.dimensions() == dimVolume/dimTime) else if (phi.dimensions() == dimVolume/dimTime)
{ {
for (label i = 0; i <= nCorr_; i++) for (int i=0; i<=nCorr_; i++)
{ {
fvScalarMatrix sEqn fvScalarMatrix sEqn
( (

View File

@ -94,7 +94,7 @@ class scalarTransport
scalar alphaDt_; scalar alphaDt_;
//- Number of corrector iterations (optional) //- Number of corrector iterations (optional)
label nCorr_; int nCorr_;
//- Name of field whose schemes are used (optional) //- Name of field whose schemes are used (optional)
word schemesField_; word schemesField_;