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

only do searchAll if forceInterpolation is set

parent 63e4259d
No related branches found
No related tags found
No related merge requests found
...@@ -222,12 +222,13 @@ PView *GMSH_MathEvalPlugin::execute(PView *view) ...@@ -222,12 +222,13 @@ PView *GMSH_MathEvalPlugin::execute(PView *view)
values[0] = x[nod]; values[1] = y[nod]; values[2] = z[nod]; values[0] = x[nod]; values[1] = y[nod]; values[2] = z[nod];
if(otherData){ if(otherData){
if(octree){ if(octree){
int qn = forceInterpolation ? numNodes : 0;
if(!octree->searchScalar(x[nod], y[nod], z[nod], &w[0], step2, if(!octree->searchScalar(x[nod], y[nod], z[nod], &w[0], step2,
0, numNodes, &x[0], &y[0], &z[0])) 0, qn, &x[0], &y[0], &z[0]))
if(!octree->searchVector(x[nod], y[nod], z[nod], &w[0], step2, if(!octree->searchVector(x[nod], y[nod], z[nod], &w[0], step2,
0, numNodes, &x[0], &y[0], &z[0])) 0, qn, &x[0], &y[0], &z[0]))
octree->searchTensor(x[nod], y[nod], z[nod], &w[0], step2, octree->searchTensor(x[nod], y[nod], z[nod], &w[0], step2,
0, numNodes, &x[0], &y[0], &z[0]); 0, qn, &x[0], &y[0], &z[0]);
} }
else else
for(int comp = 0; comp < otherNumComp; comp++) for(int comp = 0; comp < otherNumComp; comp++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment