Skip to content
Snippets Groups Projects

Version 1.2

Merged Adrien Crovato requested to merge adri into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -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)
Loading