Respect sink enabled flag for boundary ghost outflow

This commit is contained in:
2026-02-11 00:22:57 +01:00
parent 736f310118
commit e2d11c031b

View File

@@ -800,6 +800,13 @@ namespace FloodSWE.Networking
continue;
}
if (!TryResolveBoundaryProfile("sink", boundaryId, out SweBoundaryProfile sinkProfile) ||
sinkProfile == null ||
!sinkProfile.enabled)
{
continue;
}
boundarySinkIdsWithGhostOutflow.Add(boundaryId);
int[] cells = pair.Value;
if (cells == null || cells.Length == 0)