Skip to content

Commit

Permalink
re-enable back tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingru923 committed Sep 16, 2024
1 parent a094912 commit bb3d424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/integration_test/hws_integration_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

@testset "Results values" begin
@test basin.node_id == basin_bench.node_id
@test all(q -> abs(q) < 0.03, basin.level - basin_bench.level)
@show maximum(basin.level - basin_bench.level)
@test all(q -> abs(q) < 0.06, basin.level - basin_bench.level)
end

timed = @timed Ribasim.run(toml_path)
Expand Down
3 changes: 1 addition & 2 deletions core/src/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ function algorithm(solver::Solver; u0 = [])::OrdinaryDiffEqAlgorithm
kwargs = Dict{Symbol, Any}()
if algotype <: OrdinaryDiffEqNewtonAdaptiveAlgorithm
kwargs[:nlsolve] = NLNewton(;
relax = 0.1,
# relax = Ribasim.MonitoredBackTracking(; z_tmp = copy(u0), dz_tmp = copy(u0)),
relax = Ribasim.MonitoredBackTracking(; z_tmp = copy(u0), dz_tmp = copy(u0)),
)
end
# not all algorithms support this keyword
Expand Down

0 comments on commit bb3d424

Please sign in to comment.