From 54329cecb6e98677a41fa4d2f7476d633efc6335 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Tue, 5 Sep 2023 19:19:20 +0200 Subject: [PATCH] avoid returning DiffCache through BMI (#575) This should fix the TeamCity libribasim tests. `test_bmi.py` did not catch it since only getting volume is tested: `libribasim.get_value_ptr("volume")`. I'll add those tests later, but first let's unbreak CI. --- core/src/bmi.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"