Skip to content

Commit

Permalink
Address compat vs. equiv
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Oct 30, 2024
1 parent 8e443be commit e51db48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/metavar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ def add_variable(self, newvar, run_env, exists_ok=False, gen_unique=False,
# end if
if cvar is not None:
compat = cvar.compatible(newvar, run_env)
if compat:
if compat.compat:
# Check for intent mismatch
vintent = cvar.get_prop_value('intent')
dintent = newvar.get_prop_value('intent')
Expand Down
1 change: 1 addition & 0 deletions scripts/var_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ def __init__(self, var1_stdname, var1_type, var1_kind, var1_units,
# Check units argument
if var1_units != var2_units:
# Try to find a set of unit conversions
self.__equiv = False
self.__unit_transforms = self._get_unit_convstrs(var1_units,
var2_units)
# end if
Expand Down

0 comments on commit e51db48

Please sign in to comment.