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

oops

parent 94013971
Branches
Tags
No related merge requests found
......@@ -175,11 +175,9 @@ PView *GMSH_ModifyComponentPlugin::execute(PView *view)
int numComp2 = octree ? 9 : data2->getNumComponents(step2, ent, ele);
int numNodes = data1->getNumNodes(step, ent, ele);
std::vector<double> x(numNodes), y(numNodes), z(numNodes);
std::vector<int> tag(numNodes, 0.);
if(data1->isNodeData()){
std::vector<int> tag(numNodes);
for(int nod = 0; nod < numNodes; nod++)
tag[nod] = data1->getNode(step, ent, ele, nod, x[nod], y[nod], z[nod]);
}
for(int nod = 0; nod < numNodes; nod++){
if(data1->isNodeData() && tag[nod]) continue; // node has already been modified
std::vector<double> v(std::max(9, numComp), 0.);
......
......@@ -117,11 +117,9 @@ PView *GMSH_WarpPlugin::execute(PView *v)
int numNodes = data1->getNumNodes(step, ent, ele);
if(numNodes < 2) continue;
double x[8], y[8], z[8], n[3] = {0., 0., 0.};
std::vector<int> tag(8, 0);
if(data1->isNodeData()){
int tag[8];
for(int nod = 0; nod < numNodes; nod++)
tag[nod] = data1->getNode(step, ent, ele, nod, x[nod], y[nod], z[nod]);
}
int dim = data1->getDimension(step, ent, ele);
if(normals && dim == 2)
normal3points(x[0], y[0], z[0], x[1], y[1], z[1], x[2], y[2], z[2], n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment