From b1ae367dddd2c367ec0ac971d8b4483580d5523a Mon Sep 17 00:00:00 2001 From: Bart de Koning Date: Wed, 1 May 2024 12:29:42 +0200 Subject: [PATCH] Fix hanging ManningResistance test --- core/src/util.jl | 2 +- core/test/run_models_test.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/util.jl b/core/src/util.jl index b0a65de1d..2356e07ee 100644 --- a/core/src/util.jl +++ b/core/src/util.jl @@ -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'") diff --git a/core/test/run_models_test.jl b/core/test/run_models_test.jl index cb6da4625..469cf619d 100644 --- a/core/test/run_models_test.jl +++ b/core/test/run_models_test.jl @@ -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