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, ...@@ -491,8 +491,7 @@ int Chain<C>::addToModel(GModel* m, bool post,
} }
if(dim > 0) coeff = abs(coeff); if(dim > 0) coeff = abs(coeff);
std::vector<double> coeffs; std::vector<double> coeffs(1, coeff);
for(int j = 0; j < e->getNumVertices(); j++) coeffs.push_back(coeff);
data[e->getNum()] = coeffs; data[e->getNum()] = coeffs;
} }
int max[4]; int max[4];
...@@ -521,7 +520,7 @@ int Chain<C>::addToModel(GModel* m, bool post, ...@@ -521,7 +520,7 @@ int Chain<C>::addToModel(GModel* m, bool post,
// create PView for instant visualization // create PView for instant visualization
std::string pnum = convertInt(physicalNum); std::string pnum = convertInt(physicalNum);
std::string postname = pnum + "=" + _name; 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 // the user should be interested about the orientations
int size = 30; int size = 30;
PViewOptions* opt = view->getOptions(); PViewOptions* opt = view->getOptions();
......
...@@ -147,7 +147,7 @@ PView *GMSH_HomologyComputationPlugin::execute(PView *v) ...@@ -147,7 +147,7 @@ PView *GMSH_HomologyComputationPlugin::execute(PView *v)
} }
} }
//delete homology; delete homology;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment