mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
4eba7481bc
commit
02129b0846
@ -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
|
||||
|
||||
Reference in New Issue
Block a user