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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
10e29c19
Commit
10e29c19
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
clarify HO diagnostics
parent
1c86873e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/HighOrder.cpp
+13
-14
13 additions, 14 deletions
Mesh/HighOrder.cpp
with
13 additions
and
14 deletions
Mesh/HighOrder.cpp
+
13
−
14
View file @
10e29c19
...
...
@@ -1217,7 +1217,7 @@ void checkHighOrderTriangles(const char* cc, GModel *m,
minJGlob
=
1.0
;
double
minGGlob
=
1.0
;
double
avg
=
0.0
;
int
count
=
0
,
nbfair
=
0
;
int
count
=
0
,
nbfair
=
0
;
for
(
GModel
::
fiter
it
=
m
->
firstFace
();
it
!=
m
->
lastFace
();
++
it
){
for
(
unsigned
int
i
=
0
;
i
<
(
*
it
)
->
triangles
.
size
();
i
++
){
MTriangle
*
t
=
(
*
it
)
->
triangles
[
i
];
...
...
@@ -1248,12 +1248,12 @@ void checkHighOrderTriangles(const char* cc, GModel *m,
}
if
(
!
count
)
return
;
if
(
minJGlob
>
0
)
Msg
::
Info
(
"%s
:
W
orst
Face D
istor
s
ion
Mapping %g Gamma %g Nb elem. (0<d<0.2)
= %
d
"
,
cc
,
minJGlob
,
minGGlob
,
nbfair
);
Msg
::
Info
(
"%s:
w
orst
d
istor
t
ion
= %g (%d elements in ]0, 0.2]); worst gamma
= %
g
"
,
cc
,
minJGlob
,
nbfair
,
minGGlob
);
else
Msg
::
Warning
(
"%s
:
W
orst
Face D
istor
s
ion
Mapping %g (%d negative jacobians)
"
"
W
orst
G
amma
%g Avg Smoothness
%g"
,
cc
,
minJGlob
,
bad
.
size
(
),
minGGlob
,
avg
/
(
count
?
count
:
1
)
);
Msg
::
Warning
(
"%s:
w
orst
d
istor
t
ion
= %g (avg = %g, %d elements with jac. < 0);
"
"
w
orst
g
amma
=
%g"
,
cc
,
minJGlob
,
avg
/
(
count
?
count
:
1
),
bad
.
size
(),
minGGlob
);
}
void
checkHighOrderTetrahedron
(
const
char
*
cc
,
GModel
*
m
,
...
...
@@ -1262,7 +1262,7 @@ void checkHighOrderTetrahedron(const char* cc, GModel *m,
bad
.
clear
();
minJGlob
=
1.0
;
double
avg
=
0.0
;
int
count
=
0
,
nbfair
=
0
;
int
count
=
0
,
nbfair
=
0
;
for
(
GModel
::
riter
it
=
m
->
firstRegion
();
it
!=
m
->
lastRegion
();
++
it
){
for
(
unsigned
int
i
=
0
;
i
<
(
*
it
)
->
tetrahedra
.
size
();
i
++
){
MTetrahedron
*
t
=
(
*
it
)
->
tetrahedra
[
i
];
...
...
@@ -1274,14 +1274,13 @@ void checkHighOrderTetrahedron(const char* cc, GModel *m,
}
}
if
(
!
count
)
return
;
if
(
minJGlob
<
0
)
Msg
::
Warning
(
"%s : Worst Tetrahedron Smoothness %g (%d negative jacobians) "
"Avg Smoothness %g"
,
cc
,
minJGlob
,
bad
.
size
()
,
avg
/
(
count
?
count
:
1
)
);
if
(
minJGlob
>
0
)
Msg
::
Info
(
"%s: worst distortion = %g (%d elements in ]0, 0.2])"
,
cc
,
minJGlob
,
nbfair
);
else
Msg
::
Info
(
"%s : Worst Tetrahedron Smoothness %g (%d negative jacobians) "
"Avg Smoothness %g"
,
cc
,
minJGlob
,
bad
.
size
(),
avg
/
(
count
?
count
:
1
));
Msg
::
Warning
(
"%s: worst distortion = %g (avg = %g, %d elements with jac. < 0)"
,
cc
,
minJGlob
,
avg
/
(
count
?
count
:
1
),
bad
.
size
());
}
void
getMeshInfoForHighOrder
(
GModel
*
gm
,
int
&
meshOrder
,
bool
&
complete
,
...
...
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