mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user