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
2ef49d81
Commit
2ef49d81
authored
17 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
d1c5bbce
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
Mesh/BDS.cpp
+2
-2
2 additions, 2 deletions
Mesh/BDS.cpp
Mesh/meshGFace.cpp
+18
-8
18 additions, 8 deletions
Mesh/meshGFace.cpp
with
20 additions
and
10 deletions
Mesh/BDS.cpp
+
2
−
2
View file @
2ef49d81
// $Id: BDS.cpp,v 1.8
0
2007-10-11
08:59:22
remacle Exp $
// $Id: BDS.cpp,v 1.8
1
2007-10-11
14:34:04
remacle Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -217,7 +217,7 @@ BDS_Edge *BDS_Mesh::recover_edge(int num1, int num2, std::set<EdgeToRecover> *e2
if
(
!
p1
||
!
p2
)
throw
;;
Msg
(
INFO
,
" edge %d %d has to be recovered"
,
num1
,
num2
);
Msg
(
DEBUG
,
" edge %d %d has to be recovered"
,
num1
,
num2
);
int
ix
=
0
;
int
ixMax
=
100
;
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFace.cpp
+
18
−
8
View file @
2ef49d81
// $Id: meshGFace.cpp,v 1.9
3
2007-10-11 1
3:42:12
remacle Exp $
// $Id: meshGFace.cpp,v 1.9
4
2007-10-11 1
4:34:04
remacle Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -97,6 +97,13 @@ void remeshUnrecoveredEdges ( std::set<EdgeToRecover> & edgesNotRecovered, std::
v2
->
getParameter
(
0
,
t2
);
}
// periodic
if
(
v1
->
onWhat
()
==
g1
&&
v1
->
onWhat
()
==
g2
)
t1
=
fabs
(
t2
-
bb
.
low
())
<
fabs
(
t2
-
bb
.
high
())
?
bb
.
low
()
:
bb
.
high
();
if
(
v2
->
onWhat
()
==
g1
&&
v2
->
onWhat
()
==
g2
)
t2
=
fabs
(
t1
-
bb
.
low
())
<
fabs
(
t1
-
bb
.
high
())
?
bb
.
low
()
:
bb
.
high
();
if
(
lc1
==
-
1
)
lc1
=
BGM_MeshSize
(
v1
->
onWhat
(),
0
,
0
,
v1
->
x
(),
v1
->
y
(),
v1
->
z
());
if
(
lc2
==
-
1
)
...
...
@@ -681,7 +688,7 @@ bool recover_medge ( BDS_Mesh *m, GEdge *ge, std::set<EdgeToRecover> *e2r, std::
// domain, including embedded points
// and surfaces
bool
gmsh2DMeshGenerator
(
GFace
*
gf
,
bool
debug
=
true
)
bool
gmsh2DMeshGenerator
(
GFace
*
gf
,
int
RECUR_ITER
,
bool
debug
=
true
)
{
typedef
std
::
set
<
MVertex
*>
v_container
;
...
...
@@ -938,16 +945,19 @@ bool gmsh2DMeshGenerator ( GFace *gf , bool debug = true)
if
(
edgesNotRecovered
.
size
())
{
Msg
(
GERROR
,
"%d edges were not recovered on model face %d, gmsh goes back and refines the 1d mesh"
,
edgesNotRecovered
.
size
(),
gf
->
tag
());
// std::list<GFace *> facesToRemesh;
// remeshUnrecoveredEdges ( edgesNotRecovered, facesToRemesh);
Msg
(
WARNING
,
"%d mesh edges intersect in the 1d mesh of model face %d"
,
edgesNotRecovered
.
size
(),
gf
->
tag
());
Msg
(
WARNING
,
"Gmsh now refine those edges and tries again (ITER %d)"
,
RECUR_ITER
);
std
::
list
<
GFace
*>
facesToRemesh
;
remeshUnrecoveredEdges
(
edgesNotRecovered
,
facesToRemesh
);
delete
m
;
delete
[]
U_
;
delete
[]
V_
;
// if (
facesToRemesh.size() == 0)
//
return gmsh2DMeshGenerator (gf,debug);
if
(
RECUR_ITER
<
10
&&
facesToRemesh
.
size
()
==
0
)
return
gmsh2DMeshGenerator
(
gf
,
RECUR_ITER
+
1
,
debug
);
return
false
;
}
if
(
RECUR_ITER
>
0
)
Msg
(
WARNING
,
" :-) Gmsh was able to recover all edges using at ITER %d "
,
RECUR_ITER
);
// Msg(INFO,"Boundary Edges recovered for surface %d",gf->tag());
// Look for an edge that is on the boundary for which one of the
...
...
@@ -1722,7 +1732,7 @@ void meshGFace::operator() (GFace *gf)
// temp fix until we create MEdgeLoops in gmshFace
Msg
(
DEBUG1
,
"Generating the mesh"
);
if
(
gf
->
getNativeType
()
==
GEntity
::
GmshModel
||
gf
->
edgeLoops
.
empty
()){
gmsh2DMeshGenerator
(
gf
,
false
);
gmsh2DMeshGenerator
(
gf
,
0
,
false
);
}
else
{
if
(
!
gmsh2DMeshGeneratorPeriodic
(
gf
,
false
))
...
...
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