diff --git a/core/src/bmi.jl b/core/src/bmi.jl index e81d0ed89..8e5c9960c 100644 --- a/core/src/bmi.jl +++ b/core/src/bmi.jl @@ -48,7 +48,7 @@ function BMI.get_value_ptr(model::Model, name::AbstractString)::AbstractVector{F p.subgrid.level elseif name == "user_demand.demand" vec(p.user_demand.demand) - elseif name == "user_demand.inflow" + elseif name == "user_demand.cumulative_inflow" u.user_demand_inflow else error("Unknown variable $name") diff --git a/core/test/bmi_test.jl b/core/test/bmi_test.jl index c7f1b559c..12c0c8220 100644 --- a/core/test/bmi_test.jl +++ b/core/test/bmi_test.jl @@ -68,7 +68,7 @@ end "basin.cumulative_drainage", "basin.subgrid_level", "user_demand.demand", - "user_demand.inflow", + "user_demand.cumulative_inflow", ] value_first = BMI.get_value_ptr(model, name) BMI.update_until(model, 86400.0) diff --git a/python/ribasim_api/tests/test_bmi.py b/python/ribasim_api/tests/test_bmi.py index bfbd8e3e8..f11383721 100644 --- a/python/ribasim_api/tests/test_bmi.py +++ b/python/ribasim_api/tests/test_bmi.py @@ -168,7 +168,7 @@ def test_get_value_ptr_allocation(libribasim, user_demand, tmp_path): libribasim.update_until(60.0) # Realized inflow - actual_inflow = libribasim.get_value_ptr("user_demand.inflow") + actual_inflow = libribasim.get_value_ptr("user_demand.cumulative_inflow") expected_inflow = np.array([1e-4 * 60.0, 0.0, 0.0]) assert_array_almost_equal(actual_inflow, expected_inflow)