Commit 47f692db authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: add non-const access for lduMatrix::solverPerformance::solverName()

- use it to report the correct solverName for vector/tensor fields
parent 35d3be77
......@@ -145,6 +145,13 @@ public:
return solverName_;
}
//- Return solver name
word& solverName()
{
return solverName_;
}
//- Return initial residual
scalar initialResidual() const
{
......
......@@ -150,6 +150,7 @@ Foam::lduMatrix::solverPerformance Foam::fvMatrix<Type>::solve
solverPerf.print();
solverPerfVec = max(solverPerfVec, solverPerf);
solverPerfVec.solverName() = solverPerf.solverName();
psi.internalField().replace(cmpt, psiCmpt);
diag() = saveDiag;
......
Markdown is supported
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