Skip to content

Commit

Permalink
Small syntax simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Jun 6, 2024
1 parent f53c3e1 commit dec9b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/callback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ function update_allocation!(integrator)::Nothing
# Divide by the allocation Δt to obtain the mean input flows
# from the integrated flows
for key in keys(mean_input_flows)
mean_input_flows[key] = mean_input_flows[key] / Δt_allocation
mean_input_flows[key] /= Δt_allocation
end

# Divide by the allocation Δt to obtain the mean realized flows
Expand All @@ -496,7 +496,7 @@ function update_allocation!(integrator)::Nothing
_, basin_idx = id_index(basin.node_id, edge[1])
mean_realized_flows[edge] = value + u[basin_idx]
end
mean_realized_flows[edge] = mean_realized_flows[edge] / Δt_allocation
mean_realized_flows[edge] /= Δt_allocation
end

# If a main network is present, collect demands of subnetworks
Expand Down

0 comments on commit dec9b65

Please sign in to comment.