Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Sep 23, 2024
1 parent 97cb509 commit 8369927
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/test/run_models_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,11 @@ end
# numerical choices to make in terms of what the representative friction
# slope is. See e.g.:
# https://www.hec.usace.army.mil/confluence/rasdocs/ras1dtechref/latest/theoretical-basis-for-one-dimensional-and-two-dimensional-hydrodynamic-calculations/1d-steady-flow-water-surface-profiles/friction-loss-evaluation
for (i, (a, b)) in enumerate(zip(h_expected, h_actual))
@testset "approx $i" begin
@test isapprox(a, b; atol = 0.04)
end
end
@test all(isapprox.(h_expected, h_actual; atol = 0.04))
# Test for conservation of mass, flow at the beginning == flow at the end
@test Ribasim.get_flow(du, p, t, (NodeID(:FlowBoundary, 1, p), NodeID(:Basin, 2, p)))
Expand Down

0 comments on commit 8369927

Please sign in to comment.