diff --git a/core/src/bmi.jl b/core/src/bmi.jl index c8c7db092..2890ead2c 100644 --- a/core/src/bmi.jl +++ b/core/src/bmi.jl @@ -508,7 +508,7 @@ function BMI.get_value_ptr(model::Model, name::AbstractString) if name == "volume" model.integrator.u.storage elseif name == "level" - model.integrator.p.basin.current_level + get_tmp(model.integrator.p.basin.current_level, 0) elseif name == "infiltration" model.integrator.p.basin.infiltration elseif name == "drainage"