Skip to content

Commit bfb07a6

Browse files
authored
Replace hydraulic_conductivity in for loop (#982)
1 parent 801ba8a commit bfb07a6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Wflow/src/routing/subsurface/lateral_subsurface_flow.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,9 @@ function kinwave_subsurface_update!(
224224
(; river) = subsurface_flow_model.boundary_conditions
225225

226226
ns = length(order_of_subdomains)
227-
for hydraulic_conductivity in 1:ns
228-
threaded_foreach(
229-
eachindex(order_of_subdomains[hydraulic_conductivity]);
230-
basesize = 1,
231-
) do i
232-
m = order_of_subdomains[hydraulic_conductivity][i]
227+
for k in 1:ns
228+
threaded_foreach(eachindex(order_of_subdomains[k]); basesize = 1) do i
229+
m = order_of_subdomains[k][i]
233230
for (n, v) in zip(subdomain_indices[m], order_subdomain[m])
234231
if isnothing(river)
235232
# for a river cell without a reservoir part of the upstream subsurface flow

0 commit comments

Comments
 (0)