ENH: have expression dupZeroField respect defaultBoundaryType

- this is now consistent with what the internal
  "get(Vol|Surface|Point)Field" methods deliver
  (ie, zero-gradient for volume, calculated otherwise).

  Still some slight inconsistencies with what the internal
  "new(Vol|Surface|Point)Field" methods deliver however.
  There they are always "calculated"
This commit is contained in:
Mark Olesen
2021-12-15 11:33:19 +01:00
parent 223e06dfb8
commit ec3cdf57bb

View File

@ -233,7 +233,9 @@ Foam::expressions::volumeExpr::parseDriver::dupZeroField() const
( \
word(pTraits<Type>::typeName) + word("(zero)"), \
(*ptr).mesh(), \
dimensioned<Type>(Zero) \
dimensioned<Type>(Zero), \
/* zeroGradient (volume) or calculated (other) */ \
defaultBoundaryType(*ptr) \
).ptr() \
); \
break; \