Skip to content

Commit

Permalink
Rename sw to model
Browse files Browse the repository at this point in the history
  • Loading branch information
vers-w committed Nov 28, 2024
1 parent b9abcb5 commit 2105f2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routing/surface_local_inertial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ function ShallowWaterRiver(
end

"Return the upstream inflow for a waterbody in `ShallowWaterRiver`"
function get_inflow_waterbody(sw::ShallowWaterRiver, src_edge)
q_in = sum_at(sw.variables.q, src_edge)
if !isnothing(sw.floodplain)
q_in = q_in + sum_at(sw.floodplain.variables.q, src_edge)
function get_inflow_waterbody(model::ShallowWaterRiver, src_edge)
q_in = sum_at(model.variables.q, src_edge)
if !isnothing(model.floodplain)
q_in = q_in + sum_at(model.floodplain.variables.q, src_edge)
end
return q_in
end
Expand Down

0 comments on commit 2105f2c

Please sign in to comment.