Skip to content
Snippets Groups Projects
Commit 88ff2f27 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

meshmetric desctuctor

parent e02f4cba
No related branches found
No related tags found
No related merge requests found
......@@ -537,10 +537,12 @@ int GModel::adaptMesh(int technique, simpleFunction<double> *f, std::vector<doub
opt_mesh_algo2d(0, GMSH_SET, 7.0); //bamg
opt_mesh_algo3d(0, GMSH_SET, 7.0); //mmg3d
opt_mesh_lc_from_points(0, GMSH_SET, 0.0); //do not mesh lines with lc
GenerateMesh(this, getDim());
nbElems = getNumMeshElements();
if (fields) fields->deleteField(1);
//if (fields) fields->deleteField(1);
fields->reset();
if (++ITER >= niter) break;
if (ITER > 5 && fabs((double)(nbElems - nbElemsOld)) < 0.005 * nbElemsOld) break;
......@@ -555,6 +557,7 @@ int GModel::adaptMesh(int technique, simpleFunction<double> *f, std::vector<doub
nbElemsOld = nbElems;
}
fields->reset();
}
else{
......
......@@ -62,7 +62,7 @@ meshMetric::meshMetric(GModel *gm, int technique, simpleFunction<double> *fct, s
}
meshMetric::~meshMetric(){
if (_octree) delete _octree;
//if (_octree) delete _octree;
}
void meshMetric::computeValues( v2t_cont adj){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment