Skip to content
Snippets Groups Projects
Commit 4b3f4217 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix PViewData::fromVector (skipping tagged nodes was wrong!)

parent 762d31dd
No related branches found
No related tags found
No related merge requests found
...@@ -229,8 +229,6 @@ bool PViewData::fromVector(const std::vector<std::vector<double> > &vec) ...@@ -229,8 +229,6 @@ bool PViewData::fromVector(const std::vector<std::vector<double> > &vec)
for(int nod = 0; nod < getNumNodes(step, ent, ele); nod++){ for(int nod = 0; nod < getNumNodes(step, ent, ele); nod++){
double x, y, z; double x, y, z;
int tag = getNode(step, ent, ele, nod, x, y, z); int tag = getNode(step, ent, ele, nod, x, y, z);
if(tag) continue; // node has already been modified
tagNode(step, ent, ele, nod, 1);
for(int comp = 0; comp < getNumComponents(step, ent, ele); comp++){ for(int comp = 0; comp < getNumComponents(step, ent, ele); comp++){
if(i < (int)vec[step].size()){ if(i < (int)vec[step].size()){
setValue(step, ent, ele, nod, comp, vec[step][i++]); setValue(step, ent, ele, nod, comp, vec[step][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