From 861b78b928e83aee535ee039adf82a7d09305d4d Mon Sep 17 00:00:00 2001 From: Theophile Terraz Date: Wed, 22 Oct 2025 15:01:10 +0200 Subject: [PATCH] debug read rubar3 results --- src/Solver/RubarBE.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/Solver/RubarBE.py b/src/Solver/RubarBE.py index 98ee5c53..d9597c6b 100644 --- a/src/Solver/RubarBE.py +++ b/src/Solver/RubarBE.py @@ -583,27 +583,30 @@ class Rubar3(CommandLineSolver): for reach, lm in reachs: # First profile - e, s, q, z = read_data_line(f) - set_and_compute_limites(reach, 0, z, q, s) + h, s, q, z = read_data_line(f) + set_and_compute_limites(reach, 0, z+h, q, s) # For each profile ind = 1 - pe, ps, pq, pz = read_data_line(f) + ph, ps, pq, pz = read_data_line(f) while ind < lm - 2: - e, s, q, z = read_data_line(f) + h, s, q, z = read_data_line(f) set_and_compute_limites( reach, ind, - (pz + z) / 2, - (pq + q) / 2, - (ps + s) / 2 + (ph + pz + ph + h) / 2, + (pz + s) / 2, + (pq + q) / 2 ) - pe, ps, pq, pz = z, s, q, e + ph = h + ps = s + pq = q + pz = z ind += 1 # Last profile - e, s, q, z = read_data_line(f) - set_and_compute_limites(reach, ind, z, q, s) + h, s, q, z = read_data_line(f) + set_and_compute_limites(reach, ind, z+h, q, s) @timer def results(self, study, repertory, qlog=None, name="0"):