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
10178848
Commit
10178848
authored
Nov 27, 2007
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix infinite loop
parent
2a72e277
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Geo/gmshFace.cpp
+2
-1
2 additions, 1 deletion
Geo/gmshFace.cpp
Mesh/Generator.cpp
+47
-46
47 additions, 46 deletions
Mesh/Generator.cpp
Mesh/meshGFaceExtruded.cpp
+2
-1
2 additions, 1 deletion
Mesh/meshGFaceExtruded.cpp
Mesh/meshGFaceTransfinite.cpp
+2
-1
2 additions, 1 deletion
Mesh/meshGFaceTransfinite.cpp
with
53 additions
and
49 deletions
Geo/gmshFace.cpp
+
2
−
1
View file @
10178848
// $Id: gmshFace.cpp,v 1.4
2
2007-
09-26 20:51:58
geuzaine Exp $
// $Id: gmshFace.cpp,v 1.4
3
2007-
11-27 16:45:27
geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -96,6 +96,7 @@ gmshFace::gmshFace(GModel *m, int num)
{
s
=
Create_Surface
(
num
,
MSH_SURF_DISCRETE
);
Tree_Add
(
m
->
getGEOInternals
()
->
Surfaces
,
&
s
);
meshStatistics
.
status
=
GFace
::
DONE
;
}
void
gmshFace
::
setModelEdges
(
std
::
list
<
GEdge
*>&
ed
)
...
...
This diff is collapsed.
Click to expand it.
Mesh/Generator.cpp
+
47
−
46
View file @
10178848
// $Id: Generator.cpp,v 1.12
5
2007-11-2
6
1
4:34:10 remacl
e Exp $
// $Id: Generator.cpp,v 1.12
6
2007-11-2
7
1
6:45:27 geuzain
e Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -188,21 +188,19 @@ void PrintMesh2dStatistics (GModel *m)
double
worst
=
1
,
best
=
0
,
avg
=
0
;
double
e_long
=
0
,
e_short
=
1.e22
,
e_avg
=
0
;
int
nTotT
=
0
,
nTotE
=
0
,
nTotGoodLength
=
0
,
nTotGoodQuality
=
0
,
nUnmeshed
=
0
,
numFaces
=
0
;
int
nTotT
=
0
,
nTotE
=
0
,
nTotGoodLength
=
0
,
nTotGoodQuality
=
0
;
int
nUnmeshed
=
0
,
numFaces
=
0
;
Msg
(
INFO
,
"2D Mesh Statistics :"
);
for
(
GModel
::
fiter
it
=
m
->
firstFace
()
;
it
!=
m
->
lastFace
();
++
it
)
{
for
(
GModel
::
fiter
it
=
m
->
firstFace
()
;
it
!=
m
->
lastFace
();
++
it
){
worst
=
std
::
min
((
*
it
)
->
meshStatistics
.
worst_element_shape
,
worst
);
best
=
std
::
max
((
*
it
)
->
meshStatistics
.
best_element_shape
,
best
);
avg
+=
(
*
it
)
->
meshStatistics
.
average_element_shape
*
(
*
it
)
->
meshStatistics
.
nbTriangle
;
e_avg
+=
(
*
it
)
->
meshStatistics
.
efficiency_index
;
//* (*it)->meshStatistics.nbEdge;
e_long
=
std
::
max
((
*
it
)
->
meshStatistics
.
longest_edge_length
,
e_long
);
e_short
=
std
::
min
((
*
it
)
->
meshStatistics
.
smallest_edge_length
,
e_short
);
if
((
*
it
)
->
meshStatistics
.
status
==
GFace
::
FAILED
||
(
*
it
)
->
meshStatistics
.
status
==
GFace
::
PENDING
)
nUnmeshed
++
;
if
((
*
it
)
->
meshStatistics
.
status
==
GFace
::
FAILED
||
(
*
it
)
->
meshStatistics
.
status
==
GFace
::
PENDING
)
nUnmeshed
++
;
nTotT
+=
(
*
it
)
->
meshStatistics
.
nbTriangle
;
nTotE
+=
(
*
it
)
->
meshStatistics
.
nbEdge
;
nTotGoodLength
+=
(
*
it
)
->
meshStatistics
.
nbGoodLength
;
...
...
@@ -211,16 +209,19 @@ void PrintMesh2dStatistics (GModel *m)
}
if
(
CTX
.
create_append_statreport
==
1
){
fprintf
(
statreport
,
"2D stats
\t
name
\t\t
#faces
\t\t
#fail
\t\t
#t
\t\t
Qavg
\t\t
Qbest
\t\t
Qworst
\t\t
#Q>90
\t\t
#Q>90/#t
\t
#e
\t\t
tau
\t\t
#Egood
\t\t
#Egood/#e
\t
CPU
\n
"
);
fprintf
(
statreport
,
"2D stats
\t
name
\t\t
#faces
\t\t
#fail
\t\t
"
"#t
\t\t
Qavg
\t\t
Qbest
\t\t
Qworst
\t\t
#Q>90
\t\t
#Q>90/#t
\t
"
"#e
\t\t
tau
\t\t
#Egood
\t\t
#Egood/#e
\t
CPU
\n
"
);
}
fprintf
(
statreport
,
"
\t
%16s
\t
%d
\t\t
%d
\t\t
"
,
CTX
.
base_filename
,
numFaces
,
nUnmeshed
);
fprintf
(
statreport
,
"%d
\t\t
%8.7f
\t
%8.7f
\t
%8.7f
\t
%d
\t\t
%8.7f
\t
"
,
nTotT
,
avg
/
(
double
)
nTotT
,
best
,
worst
,
nTotGoodQuality
,(
double
)
nTotGoodQuality
/
nTotT
);
nTotT
,
avg
/
(
double
)
nTotT
,
best
,
worst
,
nTotGoodQuality
,
(
double
)
nTotGoodQuality
/
nTotT
);
fprintf
(
statreport
,
"%d
\t\t
%8.7f
\t
%d
\t\t
%8.7f
\t
%8.1f
\n
"
,
nTotE
,
exp
(
e_avg
/
(
double
)
nTotE
),
nTotGoodLength
,(
double
)
nTotGoodLength
/
nTotE
,
CTX
.
mesh_timer
[
1
]);
nTotE
,
exp
(
e_avg
/
(
double
)
nTotE
),
nTotGoodLength
,
(
double
)
nTotGoodLength
/
nTotE
,
CTX
.
mesh_timer
[
1
]);
fclose
(
statreport
);
}
void
Mesh2D
(
GModel
*
m
)
...
...
@@ -245,20 +246,20 @@ void Mesh2D(GModel *m)
if
(
!
Mesh2DWithBoundaryLayers
(
m
)){
std
::
for_each
(
m
->
firstFace
(),
m
->
lastFace
(),
meshGFace
());
int
nIter
=
0
;
while
(
1
)
{
while
(
1
){
meshGFace
mesher
;
int
nbPending
=
0
;
for
(
GModel
::
fiter
it
=
m
->
firstFace
()
;
it
!=
m
->
lastFace
();
++
it
)
{
if
((
*
it
)
->
meshStatistics
.
status
==
GFace
::
PENDING
){
mesher
(
*
it
);
nbPending
++
;}
for
(
GModel
::
fiter
it
=
m
->
firstFace
()
;
it
!=
m
->
lastFace
();
++
it
){
if
((
*
it
)
->
meshStatistics
.
status
==
GFace
::
PENDING
){
mesher
(
*
it
);
nbPending
++
;
}
}
if
(
!
nbPending
)
break
;
if
(
nIter
>
10
)
break
;
if
(
nIter
++
>
10
)
break
;
}
}
double
t2
=
Cpu
();
CTX
.
mesh_timer
[
1
]
=
t2
-
t1
;
Msg
(
INFO
,
"Mesh 2D complete (%g s)"
,
CTX
.
mesh_timer
[
1
]);
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceExtruded.cpp
+
2
−
1
View file @
10178848
// $Id: meshGFaceExtruded.cpp,v 1.2
2
2007-
08-02 16:16:19
geuzaine Exp $
// $Id: meshGFaceExtruded.cpp,v 1.2
3
2007-
11-27 16:45:27
geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -235,6 +235,7 @@ int MeshExtrudedSurface(GFace *gf,
MVertexLessThanLexicographic
::
tolerance
=
old_tol
;
gf
->
meshStatistics
.
status
=
GFace
::
DONE
;
return
1
;
}
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceTransfinite.cpp
+
2
−
1
View file @
10178848
// $Id: meshGFaceTransfinite.cpp,v 1.2
1
2007-
09-04
1
3
:4
7:02 remacl
e Exp $
// $Id: meshGFaceTransfinite.cpp,v 1.2
2
2007-
11-27
1
6
:4
5:27 geuzain
e Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -401,5 +401,6 @@ int MeshTransfiniteSurface(GFace *gf)
}
}
gf
->
meshStatistics
.
status
=
GFace
::
DONE
;
return
1
;
}
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