Correction for zero-sized coupled field

This commit is contained in:
Martin Beaudoin 2011-11-28 12:43:40 -05:00
parent a21696afdb
commit da4aef6f02

View file

@ -93,7 +93,7 @@ Foam::linearUpwind<Type>::correction
{ {
fvsPatchField<Type>& pSfCorr = bSfCorr[patchi]; fvsPatchField<Type>& pSfCorr = bSfCorr[patchi];
if (pSfCorr.coupled()) if (pSfCorr.coupled() && pSfCorr.size())
{ {
const fvPatch& p = mesh.boundary()[patchi]; const fvPatch& p = mesh.boundary()[patchi];