From 2dc3f23655bb3062f2201fc19940981483da3d6b Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Fri, 16 Jun 2023 11:54:56 +0200 Subject: [PATCH] allow one-directional outflow to LevelBoundary --- core/src/validation.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/validation.jl b/core/src/validation.jl index f62551383..b5a71b1ea 100644 --- a/core/src/validation.jl +++ b/core/src/validation.jl @@ -36,12 +36,15 @@ neighbortypes(::Val{:Basin}) = Set(( :FlowBoundary, )) neighbortypes(::Val{:Terminal}) = Set{Symbol}() # only endnode -neighbortypes(::Val{:FractionalFlow}) = Set((:Basin, :FractionalFlow, :Terminal)) -neighbortypes(::Val{:FlowBoundary}) = Set((:Basin, :FractionalFlow, :Terminal)) +neighbortypes(::Val{:FractionalFlow}) = + Set((:Basin, :FractionalFlow, :Terminal, :LevelBoundary)) +neighbortypes(::Val{:FlowBoundary}) = + Set((:Basin, :FractionalFlow, :Terminal, :LevelBoundary)) neighbortypes(::Val{:LevelBoundary}) = Set((:LinearResistance, :ManningResistance)) neighbortypes(::Val{:LinearResistance}) = Set((:Basin, :LevelBoundary)) neighbortypes(::Val{:ManningResistance}) = Set((:Basin, :LevelBoundary)) -neighbortypes(::Val{:TabulatedRatingCurve}) = Set((:Basin, :FractionalFlow, :Terminal)) +neighbortypes(::Val{:TabulatedRatingCurve}) = + Set((:Basin, :FractionalFlow, :Terminal, :LevelBoundary)) neighbortypes(::Any) = Set{Symbol}() # TODO NodeV1 and EdgeV1 are not yet used