diff --git a/scripts/var_props.py b/scripts/var_props.py index 9a2fd7d0..53f39f5c 100755 --- a/scripts/var_props.py +++ b/scripts/var_props.py @@ -936,6 +936,13 @@ def __init__(self, var1_stdname, var1_type, var1_kind, var1_units, # end if # end if if self.__compat: + # Only "none" units are case-insensitive + if var1_units.lower() == 'none': + var1_units = 'none' + # end if + if var2_units.lower() == 'none': + var2_units = 'none' + # end if # Check units argument if var1_units != var2_units: self.__equiv = False diff --git a/test/var_compatibility_test/test_host.meta b/test/var_compatibility_test/test_host.meta index 5d861764..da71b182 100644 --- a/test/var_compatibility_test/test_host.meta +++ b/test/var_compatibility_test/test_host.meta @@ -26,7 +26,7 @@ [ errmsg ] standard_name = ccpp_error_message long_name = Error message for error handling in CCPP - units = none + units = None dimensions = () type = character kind = len=512