Skip to content
Snippets Groups Projects
Commit 0c2bedbf authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Fix type.

parent fddceb4d
No related branches found
No related tags found
1 merge request!3Version 1.2
Pipeline #23815 passed with warnings
...@@ -179,9 +179,9 @@ void Body::setNodes(std::vector<std::vector<double>> const &coords) ...@@ -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"); throw std::runtime_error("sdpm::Problem: size of coordinates vector must be equal to the number of nodes!\n");
// Set nodes coordinates // Set nodes coordinates
for (size_t i = 0; i < _nodes.size(); ++i) 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 // 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(); size_t nTe = _teNodes.size();
std::vector<Node *> wkNodes = _wake->getNodes(); std::vector<Node *> wkNodes = _wake->getNodes();
for (size_t i = 1; i < wkNodes.size() / nTe; ++i) for (size_t i = 1; i < wkNodes.size() / nTe; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment