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