correction to d4edb38234db8268907f04836d49bb93461b8a88
authorandy <andy>
Tue, 9 Jun 2009 09:16:16 +0000 (9 10:16 +0100)
committerandy <andy>
Tue, 9 Jun 2009 09:16:16 +0000 (9 10:16 +0100)
src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C

index 3b48854..0f482ff 100644 (file)
@@ -1293,7 +1293,7 @@ Foam::tmp<Foam::fvMatrix<Type> > Foam::correction
     if
     (
         (A.hasUpper() || A.hasLower())
-     && A.mesh().fluxRequired(A.psi().name())
+     && A.psi().mesh().fluxRequired(A.psi().name())
     )
     {
         tAcorr().faceFluxCorrectionPtr() = (-A.flux()).ptr();
@@ -1317,7 +1317,7 @@ Foam::tmp<Foam::fvMatrix<Type> > Foam::correction
     if
     (
         (A.hasUpper() || A.hasLower())
-     && A.mesh().fluxRequired(A.psi().name())
+     && A.psi().mesh().fluxRequired(A.psi().name())
     )
     {
         tAcorr().faceFluxCorrectionPtr() = (-A.flux()).ptr();