From 8de8978e6f3b3814eb3a490e66f2808a17cd66b5 Mon Sep 17 00:00:00 2001
From: Paul Dechamps <paul.dechamps@uliege.be>
Date: Tue, 25 Mar 2025 02:43:22 +0100
Subject: [PATCH] (refactor) Small refactor in dart interface

---
 blast/interfaces/dart/blDartInterface.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/blast/interfaces/dart/blDartInterface.py b/blast/interfaces/dart/blDartInterface.py
index 19ab66e..47e8499 100644
--- a/blast/interfaces/dart/blDartInterface.py
+++ b/blast/interfaces/dart/blDartInterface.py
@@ -178,7 +178,7 @@ class DartInterface(SolversInterface):
                         V[iRow,iDim] = self.solver.U[row][iDim]
                     M[iRow] = self.solver.M[row]
                     Rho[iRow] = self.solver.rho[row]
-                self.iBnd[ibody][ireg].updateVariables(M, V, Rho)
+                reg.updateVariables(M, V, Rho)
 
     def setBlowingVelocity(self):
         """Impose the blowing boundary condition
@@ -397,7 +397,6 @@ class DartInterface(SolversInterface):
             elemCoord[i,1] = 0.5 * (data[i,2] + data[i+1,2])
             elemCoord[i,2] = 0.5 * (data[i,3] + data[i+1,3])
             elemsRows[i] = i
-        
         nodesCoord = np.column_stack((data[:,1], data[:,2],\
                                                    data[:,3]))
         self.iBnd[ibody][0].setMesh(nodesCoord, elemCoord[:,:3])
-- 
GitLab