Skip to content

Commit

Permalink
Add outflow to getNodeValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltryby committed Oct 9, 2024
1 parent d4e11b1 commit bcbcbe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver/include/swmm5.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/solver/swmm5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bcbcbe5

Please sign in to comment.