Skip to content

Commit

Permalink
add check for "tendency_of" in VarCompatObj
Browse files Browse the repository at this point in the history
  • Loading branch information
peverwhee committed Oct 31, 2024
1 parent 17db5c0 commit 69186d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/var_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,12 @@ def __init__(self, var1_stdname, var1_type, var1_kind, var1_units,
self.has_vert_transforms = False
incompat_reason = list()
# First, check for fatal incompatibilities
# If it's a tendency variable, it's assumed the standard name is of the
# If it's a tendency variable, the standard name should be of the
# form "tendency_of_var2_stdname"
if is_tend and not var1_stdname.startswith('tendency_of'):
self.__equiv = False
self.__compat = False
incompat_reason.append('not a tendency variable')
if not is_tend and var1_stdname != var2_stdname:
self.__equiv = False
self.__compat = False
Expand Down

0 comments on commit 69186d1

Please sign in to comment.