You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the time unit conversion code above with the use of UnitsHelper/UDUNITS for consistency.
Bonus/Future: Consider an optimization for the case when the native units of the model are seconds? UnitsHelper does this somewhat, but it might be worthwhile to highly optimize this function that is called every timestep.
Current behavior
time units are converted with bespoke internal code which may not be consistent with UDUNITS conversion
Expected behavior
unit conversions are consistent across the application and with UDUNITS as suggested by the BMI docs.
Steps to replicate behavior (include URLs)
Screenshots
The text was updated successfully, but these errors were encountered:
The following exists:
ngen/include/realizations/catchment/Bmi_Adapter.hpp
Lines 93 to 107 in c317184
The BMI docs for
get_time_units
state:Replace the time unit conversion code above with the use of UnitsHelper/UDUNITS for consistency.
Bonus/Future: Consider an optimization for the case when the native units of the model are seconds? UnitsHelper does this somewhat, but it might be worthwhile to highly optimize this function that is called every timestep.
Current behavior
time units are converted with bespoke internal code which may not be consistent with UDUNITS conversion
Expected behavior
unit conversions are consistent across the application and with UDUNITS as suggested by the BMI docs.
Steps to replicate behavior (include URLs)
Screenshots
The text was updated successfully, but these errors were encountered: