From bcbcbe56c9d9b16a1ff67480ff6b6ea6c213bc23 Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Wed, 9 Oct 2024 16:52:01 -0400 Subject: [PATCH] Add outflow to getNodeValue() --- src/solver/include/swmm5.h | 3 ++- src/solver/swmm5.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/solver/include/swmm5.h b/src/solver/include/swmm5.h index e150a74f2..f0768206d 100644 --- a/src/solver/include/swmm5.h +++ b/src/solver/include/swmm5.h @@ -84,7 +84,8 @@ typedef enum { swmm_NODE_LATFLOW = 306, swmm_NODE_INFLOW = 307, swmm_NODE_OVERFLOW = 308, - swmm_NODE_RPTFLAG = 309 + swmm_NODE_RPTFLAG = 309, + swmm_NODE_OUTFLOW = 310 } swmm_NodeProperty; typedef enum { diff --git a/src/solver/swmm5.c b/src/solver/swmm5.c index 6ff8c9b26..c503e37d5 100644 --- a/src/solver/swmm5.c +++ b/src/solver/swmm5.c @@ -1049,6 +1049,9 @@ double getNodeValue(int property, int index) return node->overflow * UCF(FLOW); case swmm_NODE_RPTFLAG: return (node->rptFlag > 0); + case swmm_NODE_OUTFLOW: + return node->outflow * UCF(FLOW); + default: return 0; }