From be58d4ba7e4e4c82f78be53123033dae8981c487 Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Wed, 27 Feb 2013 08:13:09 +0000 Subject: [PATCH] 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". --- Geo/Chain.h | 5 ++--- Plugin/HomologyComputation.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Geo/Chain.h b/Geo/Chain.h index 5b4567d392..3c9b475474 100644 --- a/Geo/Chain.h +++ b/Geo/Chain.h @@ -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(); diff --git a/Plugin/HomologyComputation.cpp b/Plugin/HomologyComputation.cpp index d668f59f81..0dd4a1d4b4 100644 --- a/Plugin/HomologyComputation.cpp +++ b/Plugin/HomologyComputation.cpp @@ -147,7 +147,7 @@ PView *GMSH_HomologyComputationPlugin::execute(PView *v) } } - //delete homology; + delete homology; return 0; } -- GitLab