diff --git a/sdpm/src/sdpmBody.cpp b/sdpm/src/sdpmBody.cpp index d4de4561278cefbd3c57ba299fd8c1137a17135e..1b50be44ac1d282d476ed3d9e81a38b237a39022 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)