diff --git a/Geo/Chain.h b/Geo/Chain.h index 5b4567d3921b9c089fe256f0a8a01e4b162539ab..3c9b47547446244485564e10ca24a747420fec0d 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 d668f59f81066d3a4332142e8d743b5873f96b4c..0dd4a1d4b4afd23e374c4f97af4c8c5497947dfd 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; }