functionObjects::scalarTransport/phaseScalarTransport: Use int for the corrector loop
rather than label.
This commit is contained in:
@ -409,7 +409,7 @@ bool Foam::functionObjects::phaseScalarTransport::execute()
|
||||
// Solve
|
||||
if (alphaPhi.dimensions() == dimVolume/dimTime)
|
||||
{
|
||||
for (label i = 0; i <= nCorr_; ++ i)
|
||||
for (int i=0; i<=nCorr_; i++)
|
||||
{
|
||||
fvScalarMatrix fieldEqn
|
||||
(
|
||||
@ -437,7 +437,7 @@ bool Foam::functionObjects::phaseScalarTransport::execute()
|
||||
const volScalarField& rho =
|
||||
mesh_.lookupObject<volScalarField>(rhoName_);
|
||||
|
||||
for (label i = 0; i <= nCorr_; ++ i)
|
||||
for (int i=0; i<=nCorr_; i++)
|
||||
{
|
||||
fvScalarMatrix fieldEqn
|
||||
(
|
||||
|
||||
@ -152,7 +152,7 @@ class phaseScalarTransport
|
||||
scalar alphaDt_;
|
||||
|
||||
//- Number of corrector iterations (optional)
|
||||
label nCorr_;
|
||||
int nCorr_;
|
||||
|
||||
//- Residual volume-fraction
|
||||
scalar residualAlpha_;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -189,7 +189,7 @@ bool Foam::functionObjects::scalarTransport::execute()
|
||||
const volScalarField& rho =
|
||||
mesh_.lookupObject<volScalarField>(rhoName_);
|
||||
|
||||
for (label i = 0; i <= nCorr_; i++)
|
||||
for (int i=0; i<=nCorr_; i++)
|
||||
{
|
||||
fvScalarMatrix sEqn
|
||||
(
|
||||
@ -209,7 +209,7 @@ bool Foam::functionObjects::scalarTransport::execute()
|
||||
}
|
||||
else if (phi.dimensions() == dimVolume/dimTime)
|
||||
{
|
||||
for (label i = 0; i <= nCorr_; i++)
|
||||
for (int i=0; i<=nCorr_; i++)
|
||||
{
|
||||
fvScalarMatrix sEqn
|
||||
(
|
||||
|
||||
@ -94,7 +94,7 @@ class scalarTransport
|
||||
scalar alphaDt_;
|
||||
|
||||
//- Number of corrector iterations (optional)
|
||||
label nCorr_;
|
||||
int nCorr_;
|
||||
|
||||
//- Name of field whose schemes are used (optional)
|
||||
word schemesField_;
|
||||
|
||||
Reference in New Issue
Block a user