Skip to content
Snippets Groups Projects
Commit 02129b08 authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

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.
parent 4eba7481
Branches
Tags
1 merge request!420BUG: fixing various bugs for v2106
......@@ -105,7 +105,7 @@ Foam::solverPerformance Foam::PBiCG::solve
(
ConstPrecisionAdaptor<scalar, solveScalar>(rA)(),
fieldName_,
false
true
);
// --- Calculate normalisation factor
......
......@@ -104,7 +104,7 @@ Foam::solverPerformance Foam::PCG::scalarSolve
(
ConstPrecisionAdaptor<scalar, solveScalar>(rA)(),
fieldName_,
false
true
);
// --- Calculate normalisation factor
......
......@@ -140,7 +140,7 @@ Foam::solverPerformance Foam::smoothSolver::solve
(
ConstPrecisionAdaptor<scalar, solveScalar>(residual)(),
fieldName_,
false
true
);
// Calculate residual magnitude
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment