From eabf93a0cffbd50e42d8d90fb4b93f9ba72d92b0 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 15 Jun 2009 10:31:39 +0100 Subject: [PATCH] bugfix: psi().needReference()... --- src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C index 5eae3a9f80..1e49de4683 100644 --- a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C +++ b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C @@ -1301,7 +1301,11 @@ Foam::tmp > Foam::correction { tmp > 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::correction // Note the matrix coefficients are still that of matrix A const fvMatrix& 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(); }