From 12e3d779c6a3a225f87baafd224f7a6a7c3f9665 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Mon, 27 Nov 2023 11:40:59 +0100
Subject: [PATCH] Mage: Fix BC export when node is not associate.

---
 src/Solver/Mage.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Solver/Mage.py b/src/Solver/Mage.py
index b814fd71..4afaf59f 100644
--- a/src/Solver/Mage.py
+++ b/src/Solver/Mage.py
@@ -268,6 +268,9 @@ class Mage(CommandLineSolver):
 
         for tab in ["liquid", "solid", "suspenssion"]:
             for bound in lst.get_tab(tab):
+                if bound.node is None:
+                    continue
+
                 if bound.bctype == "ZD":
                     AVA.append(bound)
                 elif bound.bctype == "TD" or bound.bctype == "PC":
-- 
GitLab