Check VerticalDimSpec based on name #3054
Labels
📈 MAPL3
MAPL 3 Related
🎁 New Feature
This is a new feature
❄️ Stale
This issue has been marked stale
A
VerticalDimSpec
value is stored as a string in theESMF_Info
object in aESMF_Field
object. To check theVerticalDimSpec
value of anESMF_Field
requires a string match to a string literal. The string literal can be stored in a parameter so that multiple string literals are created for the sameVerticalDimSpec
, but then matching requires knowing the parameter name. There is no guarantee that the parameter name or string literal match the name of the relevantVerticalDimSpec
. This seems fragile.Two options:
ESMF_Info
for the VerticalDimSpec objects, and the parameters used for the creation would be public for the sake of comparison. This still requires that the parameter names be known, but it does protect against changes in the string in theESMF_Info
object.VerticalDimSpec
.The text was updated successfully, but these errors were encountered: