From 00495298d52dc44d56be0cc105a8208194cc1434 Mon Sep 17 00:00:00 2001
From: toto <toto@tata>
Date: Wed, 23 Nov 2022 15:23:58 +0100
Subject: [PATCH] fix: backwater curve: rename water ligne to ZW, add water
 depth as Y

refs #333
---
 src/open-channel/remous.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/open-channel/remous.ts b/src/open-channel/remous.ts
index cb8e52fb..817708d7 100644
--- a/src/open-channel/remous.ts
+++ b/src/open-channel/remous.ts
@@ -445,9 +445,10 @@ export class CourbeRemous extends SectionNub {
             } else {
                 ligneDeau = Math.max(crbFlu[x], crbTor[x]);
             }
-            const re = new ResultElement({ Y: ligneDeau + this.getCoteFond(x) });
+            const re = new ResultElement({ ZW: ligneDeau + this.getCoteFond(x) });
 
             re.addExtraResult("X", x);
+            re.addExtraResult("Y", ligneDeau);
 
             if (crbFlu[x]) {
                 re.addExtraResult("flu", crbFlu[x] + this.getCoteFond(x));
-- 
GitLab