diff --git a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C index 5eae3a9f80a1ce3f9401f07fd8759a5d67789a68..1e49de46837ff1613623633bc791033d46e02595 100644 --- a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C +++ b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C @@ -1301,7 +1301,11 @@ Foam::tmp<Foam::fvMatrix<Type> > Foam::correction { tmp<Foam::fvMatrix<Type> > tAcorr = A - (A & A.psi()); - if ((A.hasUpper() || A.hasLower()) && A.mesh().fluxRequired(A.psi().name())) + if + ( + (A.hasUpper() || A.hasLower()) + && A.psi().mesh().fluxRequired(A.psi().name()) + ) { tAcorr().faceFluxCorrectionPtr() = (-A.flux()).ptr(); } @@ -1321,7 +1325,11 @@ Foam::tmp<Foam::fvMatrix<Type> > Foam::correction // Note the matrix coefficients are still that of matrix A const fvMatrix<Type>& A = tAcorr(); - if ((A.hasUpper() || A.hasLower()) && A.mesh().fluxRequired(A.psi().name())) + if + ( + (A.hasUpper() || A.hasLower()) + && A.psi().mesh().fluxRequired(A.psi().name()) + ) { tAcorr().faceFluxCorrectionPtr() = (-A.flux()).ptr(); }