Skip to content

Commit

Permalink
Fix hanging ManningResistance test
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed May 1, 2024
1 parent 79aa2df commit b1ae367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ has_fractional_flow_outneighbors(graph::MetaGraph, node_id::NodeID)::Bool = any(
)

internalnorm(u::ComponentVector, t) = OrdinaryDiffEq.ODE_DEFAULT_NORM(u.storage, t)
internalnorm(u::Number, t) = 0.0
internalnorm(u::Number, t) = OrdinaryDiffEq.ODE_DEFAULT_NORM(u, t)

function get_n_node(db::DB, type::String)::Int
result = execute(columntable, db, "SELECT COUNT(*) From Node WHERE node_type = '$type'")
Expand Down
2 changes: 1 addition & 1 deletion core/test/run_models_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ end
@test only(model.integrator.sol(180day).storage) 509 atol = 1
end

@testitem "ManningResistance" skip = true begin
@testitem "ManningResistance" begin
using PreallocationTools: get_tmp
using SciMLBase: successful_retcode
using Ribasim: NodeID
Expand Down

0 comments on commit b1ae367

Please sign in to comment.