BUG: solverInfo: ensure access to initial residual fields (#1452)

Prior to the commit, initial residual fields were registered by
the `setResidualField()` function of a linear solver with a field name
prefixed by `residual:`. However, `solverInfo` FO could only access to
the initial residual fields prefixed by `initialResidual:`.

Due to this discrepancy, using `solverInfo` FO with `writeResidualFields=true`
option was resulting in empty residual fields to be output.
This commit is contained in:
Kutalmis Bercin
2020-12-17 12:04:30 +00:00
committed by Andrew Heather
parent 4eba7481bc
commit 02129b0846
3 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ Foam::solverPerformance Foam::PBiCG::solve
(
ConstPrecisionAdaptor<scalar, solveScalar>(rA)(),
fieldName_,
false
true
);
// --- Calculate normalisation factor

View File

@ -104,7 +104,7 @@ Foam::solverPerformance Foam::PCG::scalarSolve
(
ConstPrecisionAdaptor<scalar, solveScalar>(rA)(),
fieldName_,
false
true
);
// --- Calculate normalisation factor

View File

@ -140,7 +140,7 @@ Foam::solverPerformance Foam::smoothSolver::solve
(
ConstPrecisionAdaptor<scalar, solveScalar>(residual)(),
fieldName_,
false
true
);
// Calculate residual magnitude