Skip to content

Commit

Permalink
Update allocation code in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed May 1, 2024
1 parent bd8859d commit b0934ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/core/allocation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,9 @@ using SQLite
using ComponentArrays: ComponentVector
toml_path = normpath(@__DIR__, "../../generated_testmodels/allocation_example/ribasim.toml")
p = Ribasim.Model(toml_path).integrator.p
u = ComponentVector(; storage = zeros(length(p.basin.node_id)))
(; p, u, t) = Ribasim.Model(toml_path).integrator
allocation_model = p.allocation.allocation_models[1]
t = 0.0
priority_idx = 1
Ribasim.set_flow!(p.graph, NodeID(:FlowBoundary, 1), NodeID(:Basin, 2), 1.0)
Expand Down

0 comments on commit b0934ff

Please sign in to comment.