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

Correct motion induced velocity vector size when update.

parent 264639a4
No related branches found
No related tags found
1 merge request!2Version 1.1
Pipeline #22747 passed
......@@ -155,6 +155,8 @@ Body::Body(Mesh &msh, std::string const &name, std::string const &teName,
_nLoads.resize(_nodes.size());
_nLoads1Re.resize(nM, std::vector<std::vector<sdpmVector3d>>(nF, std::vector<sdpmVector3d>(_nodes.size(), sdpmVector3d::Zero())));
_nLoads1Im.resize(nM, std::vector<std::vector<sdpmVector3d>>(nF, std::vector<sdpmVector3d>(_nodes.size(), sdpmVector3d::Zero())));
_iVelocityS.resize(nM, std::vector<sdpmVector3d>(getElements().size(), sdpmVector3d::Zero()));
_iVelocityH.resize(nM, std::vector<sdpmVector3d>(getElements().size(), sdpmVector3d::Zero()));
}
Body::~Body()
......@@ -205,8 +207,8 @@ void Body::computeVelocity(size_t m, sdpmVector3d const &ui)
ucS[i] = _motions[m]->computeSteady(*elems[i], ui);
ucH[i] = _motions[m]->computeHarmonic(*elems[i]);
}
_iVelocityS.push_back(ucS);
_iVelocityH.push_back(ucH);
_iVelocityS[m] = ucS;
_iVelocityH[m] = ucH;
}
/**
......
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