Skip to content
Snippets Groups Projects
Commit be58d4ba authored by Matti Pellika's avatar Matti Pellika
Browse files

End tests. Still baffled by why Windows build crashes when displaying...

End tests. Still baffled by why Windows build crashes when displaying post-processing views of (co)homology chains. I also noticed Gmsh crashes in Windows when displaying element quality measures post-processing views, i.e. Tools->Statistics->Rho "Plot 3D".

parent 74fc62c2
No related branches found
No related tags found
No related merge requests found
......@@ -491,8 +491,7 @@ int Chain<C>::addToModel(GModel* m, bool post,
}
if(dim > 0) coeff = abs(coeff);
std::vector<double> coeffs;
for(int j = 0; j < e->getNumVertices(); j++) coeffs.push_back(coeff);
std::vector<double> coeffs(1, coeff);
data[e->getNum()] = coeffs;
}
int max[4];
......@@ -521,7 +520,7 @@ int Chain<C>::addToModel(GModel* m, bool post,
// create PView for instant visualization
std::string pnum = convertInt(physicalNum);
std::string postname = pnum + "=" + _name;
PView* view = new PView(postname, "ElementNodeData", m, data, 0., 1);
PView* view = new PView(postname, "ElementData", m, data, 0., 1);
// the user should be interested about the orientations
int size = 30;
PViewOptions* opt = view->getOptions();
......
......@@ -147,7 +147,7 @@ PView *GMSH_HomologyComputationPlugin::execute(PView *v)
}
}
//delete homology;
delete homology;
return 0;
}
......
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