From 9da28c2e39a0a4f48de2bb5d3138eb67d49dbc1b Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@irstea.fr>
Date: Tue, 14 May 2019 10:01:58 +0200
Subject: [PATCH] #33 PAB: fix missing first cloison

---
 src/pab/pab.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pab/pab.ts b/src/pab/pab.ts
index c94d9826..cd9f157d 100644
--- a/src/pab/pab.ts
+++ b/src/pab/pab.ts
@@ -66,7 +66,7 @@ export class Pab extends Nub {
         let Z: number = this.prms.Z2.v;
         Z = this.calcZ1(this.downWall, Q, Z);
 
-        for (let i = this.children.length - 1; i > 0; i--) {
+        for (let i = this.children.length - 1; i >= 0; i--) {
 
             // Initialisations for current cloison
             const cl: PabCloisons = this.children[i];
-- 
GitLab