GAMGSolverSolve: scale coarsest level if using interpolation

This commit is contained in:
Henry 2014-01-08 16:48:09 +00:00
parent 3422564872
commit 364cfd76d2

View File

@ -352,7 +352,11 @@ void Foam::GAMGSolver::Vcycle
// Scale coarse-grid correction field
// but not on the coarsest level because it evaluates to 1
if (scaleCorrection_ && leveli < coarsestLevel - 1)
if
(
scaleCorrection_
&& (interpolateCorrection_ || leveli < coarsestLevel - 1)
)
{
scale
(