Split reach: handling the case where the reach is split on a data used to define a data (an initial condition for example)

This commit is contained in:
Dylan Jeannin committed 2026-08-12 12:09:47 +02:00
1 parent 3d467c9620
commit dd31ffc5a2
8 files changed
+20 -14

No files matched your search

@@ -204,7 +204,7 @@ class WeatherParametersList(PamhyrModelList):
for new_reach, part_lower, part_upper, sections in parts:
clipped_lower = max(lower, part_lower)
clipped_upper = min(upper, part_upper)
if clipped_lower > clipped_upper:
if clipped_lower >= clipped_upper:
continue
begin_index = clipped_upper if reverse else clipped_lower