From 0c2bedbf48c8fd7521d70364dff634190f2c0738 Mon Sep 17 00:00:00 2001
From: acrovato <a.crovato@uliege.be>
Date: Thu, 9 May 2024 14:34:00 +0200
Subject: [PATCH] Fix type.

---
 sdpm/src/sdpmBody.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdpm/src/sdpmBody.cpp b/sdpm/src/sdpmBody.cpp
index d4de456..1b50be4 100644
--- a/sdpm/src/sdpmBody.cpp
+++ b/sdpm/src/sdpmBody.cpp
@@ -179,9 +179,9 @@ void Body::setNodes(std::vector<std::vector<double>> const &coords)
         throw std::runtime_error("sdpm::Problem: size of coordinates vector must be equal to the number of nodes!\n");
     // Set nodes coordinates
     for (size_t i = 0; i < _nodes.size(); ++i)
-        _nodes[i]->setCoords(sdpmVector3d(coords[i].data()));
+        _nodes[i]->setCoords(sdpmVector3d(coords[i][0], coords[i][1], coords[i][2]));
     // Update wake
-    double dx = _wake->getLagMap().at(_wake->getElements()[0]); // dx = dt of first cell
+    sdpmDouble dx = _wake->getLagMap().at(_wake->getElements()[0]); // dx = dt of first cell
     size_t nTe = _teNodes.size();
     std::vector<Node *> wkNodes = _wake->getNodes();
     for (size_t i = 1; i < wkNodes.size() / nTe; ++i)
-- 
GitLab