Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment