From da4aef6f02f779ac55a751bb72423a601395c050 Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Mon, 28 Nov 2011 12:43:40 -0500 Subject: [PATCH] Correction for zero-sized coupled field --- .../limitedSchemes/linearUpwind/linearUpwind.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.C b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.C index cb9f7d986..23404053f 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.C @@ -93,7 +93,7 @@ Foam::linearUpwind::correction { fvsPatchField& pSfCorr = bSfCorr[patchi]; - if (pSfCorr.coupled()) + if (pSfCorr.coupled() && pSfCorr.size()) { const fvPatch& p = mesh.boundary()[patchi];