ENH: changed absTol->tolerance for consistency with solvers

This commit is contained in:
andy
2011-04-20 12:59:08 +01:00
parent 237326e29f
commit 335da20074
4 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ Foam::pimpleControl::pimpleControl(fvMesh& mesh)
{ {
Info<< " field " << residualControl_[i].name << token::TAB Info<< " field " << residualControl_[i].name << token::TAB
<< ": relTol " << residualControl_[i].relTol << ": relTol " << residualControl_[i].relTol
<< ", absTol " << residualControl_[i].absTol << ", tolerance " << residualControl_[i].absTol
<< nl; << nl;
} }
Info<< endl; Info<< endl;

View File

@ -68,7 +68,7 @@ bool Foam::simpleControl::criteriaSatisfied()
{ {
Info<< algorithmName_ << " solution statistics:" << endl; Info<< algorithmName_ << " solution statistics:" << endl;
Info<< " " << variableName << ": abs tol = " << residual Info<< " " << variableName << ": tolerance = " << residual
<< " (" << residualControl_[fieldI].absTol << ")" << " (" << residualControl_[fieldI].absTol << ")"
<< endl; << endl;
} }
@ -96,7 +96,7 @@ Foam::simpleControl::simpleControl(fvMesh& mesh)
forAll(residualControl_, i) forAll(residualControl_, i)
{ {
Info<< " field " << residualControl_[i].name << token::TAB Info<< " field " << residualControl_[i].name << token::TAB
<< " absTol " << residualControl_[i].absTol << " tolerance " << residualControl_[i].absTol
<< nl; << nl;
} }
Info<< endl; Info<< endl;

View File

@ -68,7 +68,7 @@ void Foam::solutionControl::read(const bool absTolOnly)
if (iter().isDict()) if (iter().isDict())
{ {
const dictionary& fieldDict(iter().dict()); const dictionary& fieldDict(iter().dict());
fd.absTol = readScalar(fieldDict.lookup("absTol")); fd.absTol = readScalar(fieldDict.lookup("tolerance"));
fd.relTol = readScalar(fieldDict.lookup("relTol")); fd.relTol = readScalar(fieldDict.lookup("relTol"));
fd.initialResidual = 0.0; fd.initialResidual = 0.0;
} }

View File

@ -63,7 +63,7 @@ PIMPLE
"(U|k|epsilon)" "(U|k|epsilon)"
{ {
relTol 0; relTol 0;
absTol 0.0001; tolerance 0.0001;
} }
} }
} }