From 6ed6f62e3050035888c483a47db43600bc26d59d Mon Sep 17 00:00:00 2001 From: Guillaume PIERRE Date: Thu, 19 Dec 2024 14:38:41 +0100 Subject: [PATCH] New hydro remix : fix the previous fix --- src/solver/simulation/hydro-remix-new.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/simulation/hydro-remix-new.cpp b/src/solver/simulation/hydro-remix-new.cpp index 789a0ff988..12a5c4d626 100644 --- a/src/solver/simulation/hydro-remix-new.cpp +++ b/src/solver/simulation/hydro-remix-new.cpp @@ -238,7 +238,7 @@ RemixHydroOutput new_remix_hydro(const std::vector& G, levels.begin() + std::max(idx_creux, idx_pic)); double max_pic, max_creux; - if (idx_creux < idx_creux) + if (idx_creux < idx_pic) { max_pic = capa; max_creux = *std::min_element(intermediate_level.begin(),