Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
88ff2f27
Commit
88ff2f27
authored
Dec 16, 2011
by
Emilie Marchandise
Browse files
Options
Downloads
Patches
Plain Diff
meshmetric desctuctor
parent
e02f4cba
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GModel.cpp
+4
-1
4 additions, 1 deletion
Geo/GModel.cpp
Mesh/meshMetric.cpp
+1
-1
1 addition, 1 deletion
Mesh/meshMetric.cpp
with
5 additions
and
2 deletions
Geo/GModel.cpp
+
4
−
1
View file @
88ff2f27
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshMetric.cpp
+
1
−
1
View file @
88ff2f27
...
...
@@ -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
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment