Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ void removeOutflows(double tStep)
// --- update mass balance with flow and mass leaving the system
// through outfalls and flooded interior nodes
q = node_getSystemOutflow(i, &isFlooded);
if ( q != 0.0 )
if ( q > 0.0 )
{
massbal_addOutflowFlow(q, isFlooded);
for ( p = 0; p < Nobjects[POLLUT]; p++ )
Expand All @@ -813,6 +813,7 @@ void removeOutflows(double tStep)
massbal_addOutflowQual(p, w, isFlooded);
}
}
else massbal__addInflowFlow(EXTERNAL_INFLOW, -q);

// --- update mass balance with mass leaving system through negative
// lateral inflows (lateral flow was previously accounted for)
Expand Down