Commit ec3cdf57 authored by Mark Olesen's avatar Mark Olesen
Browse files

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"
parent 223e06df
......@@ -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; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment