Skip to content

Commit

Permalink
Fix allocation arrow bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Apr 3, 2024
1 parent 5ae71c2 commit b8dcd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/allocation_optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ function save_demands_and_allocations!(
if node_id.type == NodeType.UserDemand
has_demand = true
user_demand_idx = findsorted(user_demand.node_id, node_id)
demand = user_demand.demand[user_demand_idx]
demand = get_user_demand(p, node_id, priority_idx; reduced = false)
allocated = user_demand.allocated[user_demand_idx][priority_idx]
#NOTE: instantaneous
realized = get_flow(graph, inflow_id(graph, node_id), node_id, 0)
Expand Down

0 comments on commit b8dcd24

Please sign in to comment.