Skip to content

Commit

Permalink
Merge error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Nov 29, 2023
1 parent ede4ae2 commit 4c0af82
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/src/bmi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -520,20 +520,6 @@ function save_subgrid_level(u, t, integrator)
return copy(integrator.p.subgrid.level)
end

function update_subgrid_level!(integrator)::Nothing
basin_level = get_tmp(integrator.p.basin.current_level, 0)
subgrid = integrator.p.subgrid
for (i, (index, interp)) in enumerate(zip(subgrid.basin_index, subgrid.interpolations))
subgrid.level[i] = interp(basin_level[index])
end
end

"Interpolate the levels and save them to SavedValues"
function save_subgrid_level(u, t, integrator)
update_subgrid_level!(integrator)
return copy(integrator.p.subgrid.level)
end

"Load updates from 'Basin / time' into the parameters"
function update_basin(integrator)::Nothing
(; basin) = integrator.p
Expand Down

0 comments on commit 4c0af82

Please sign in to comment.