Skip to content

Commit

Permalink
avoid returning DiffCache through BMI (#575)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
visr committed Sep 14, 2023
1 parent c0f010d commit 54329ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/bmi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 54329ce

Please sign in to comment.