Index: wflow-py/wflow/wflow_bmi.py =================================================================== diff -u -rfb89328fc3583f23c98872563999d87a38b3cb9e -r8944c14a29922452d94bd04d5eceafbc0d94652e --- wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision fb89328fc3583f23c98872563999d87a38b3cb9e) +++ wflow-py/wflow/wflow_bmi.py (.../wflow_bmi.py) (revision 8944c14a29922452d94bd04d5eceafbc0d94652e) @@ -621,9 +621,16 @@ using the UDUNITS standard from Unidata. (only if set properly in the ini file) """ - units = self.dynModel.wf_supplyVariableUnits(long_var_name) - return str(units) + nru = self.dynModel.wf_supplyVariableNamesAndRoles() + unit ='mm' + + for it in nru: + if long_var_name == it[0]: + unit = it[2] + + return unit + def set_value(self, long_var_name, src): """ Set the values(s) in a map using a numpy array as source