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
A model declares a BMI output variable (e.g. soil_moisture_wetting_fronts from LGAR-C)
The model is configured such that the variable has zero size, and returns 0 from GetVarNbytes(soil_moisture_wetting_fronts)
Expected Behavior
Ngen will never try to read any values from that variable. It might call GetValue, and ignore the contents of the output buffer. If it calls GetValuePtr, it should not try to access any dereferenced values through it, because it cannot rely on them to be valid addresses
Actual behavior:
In attempting to write catchment output, ngen's get_output_line_for_timestep tries to read a single value from each listed output variable, without regard to its size.
Circumstance:
soil_moisture_wetting_frontsfrom LGAR-C)GetVarNbytes(soil_moisture_wetting_fronts)Expected Behavior
GetValue, and ignore the contents of the output buffer. If it callsGetValuePtr, it should not try to access any dereferenced values through it, because it cannot rely on them to be valid addressesActual behavior:
get_output_line_for_timesteptries to read a single value from each listed output variable, without regard to its size.