mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use residual from the first iteration for residualControl
This commit is contained in:
@ -47,8 +47,12 @@ bool Foam::residualControl::checkCriteria(const bool verbose) const
|
|||||||
|
|
||||||
if (maxResiduals_.readIfPresent(variableName, maxResidual))
|
if (maxResiduals_.readIfPresent(variableName, maxResidual))
|
||||||
{
|
{
|
||||||
|
// use the residual from the first solution
|
||||||
const scalar eqnResidual =
|
const scalar eqnResidual =
|
||||||
lduMatrix::solverPerformance(iter().stream()).initialResidual();
|
List<lduMatrix::solverPerformance>
|
||||||
|
(
|
||||||
|
iter().stream()
|
||||||
|
).first().initialResidual();
|
||||||
|
|
||||||
achieved = achieved && (eqnResidual < maxResidual);
|
achieved = achieved && (eqnResidual < maxResidual);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user