Correction for zero-sized coupled field
This commit is contained in:
parent
a21696afdb
commit
da4aef6f02
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ Foam::linearUpwind<Type>::correction
|
|||
{
|
||||
fvsPatchField<Type>& pSfCorr = bSfCorr[patchi];
|
||||
|
||||
if (pSfCorr.coupled())
|
||||
if (pSfCorr.coupled() && pSfCorr.size())
|
||||
{
|
||||
const fvPatch& p = mesh.boundary()[patchi];
|
||||
|
||||
|
|
Reference in a new issue