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
Package registry
Model registry
Operate
Terraform modules
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
Romin Tomasetti
gmsh
Commits
d27f2f49
Commit
d27f2f49
authored
6 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
remove debug
parent
ec90172b
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
+61
-61
61 additions, 61 deletions
Mesh/BDS.cpp
Mesh/meshGFaceBDS.cpp
+37
-36
37 additions, 36 deletions
Mesh/meshGFaceBDS.cpp
with
98 additions
and
97 deletions
Mesh/BDS.cpp
+
61
−
61
View file @
d27f2f49
...
...
@@ -1008,7 +1008,7 @@ bool BDS_Mesh::swap_edge(BDS_Edge *e, const BDS_SwapEdgeTest &theTest, bool forc
if
(
e
->
g
&&
e
->
g
->
classif_degree
==
1
)
return
false
;
const
int
CHECK1
=
4
1
,
CHECK2
=
86
;
const
int
CHECK1
=
-
1
,
CHECK2
=
-
1
;
BDS_Point
*
op
[
2
];
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceBDS.cpp
+
37
−
36
View file @
d27f2f49
...
...
@@ -351,7 +351,6 @@ static void splitEdgePass(GFace *gf, BDS_Mesh &m, double MAXE_, int &nb_split, s
std
::
vector
<
BDS_Point
*>
mids
(
edges
.
size
());
bool
isPeriodic
=
gf
->
periodic
(
0
)
||
gf
->
periodic
(
1
)
;
bool
faceDiscrete
=
gf
->
geomType
()
==
GEntity
::
DiscreteSurface
;
for
(
unsigned
int
i
=
0
;
i
<
edges
.
size
();
++
i
){
...
...
@@ -521,8 +520,9 @@ void smoothVertexPass(GFace *gf, BDS_Mesh &m, int &nb_smooth, bool q)
void
CHECK_STRANGE
(
const
char
*
c
,
BDS_Mesh
&
m
){
return
;
#if 0
int strange = 0;
for
(
in
t
i
=
0
;
i
<
m
.
triangles
.
size
();
++
i
){
for (
size_
t i=0;i<m.triangles.size();++i){
BDS_Point *pts[4];
m.triangles[i]->getNodes(pts);
double surface_triangle_param(BDS_Point *p1, BDS_Point *p2, BDS_Point *p3);
...
...
@@ -535,7 +535,7 @@ void CHECK_STRANGE (const char *c,BDS_Mesh &m){
if (strange)printf("strange(%s) = %d\n",c,strange);
return;
for
(
int
i
=
0
;
i
<
m
.
triangles
.
size
();
++
i
){
for (
size_t
int i=0;i<m.triangles.size();++i){
BDS_Point *pts[4];
m.triangles[i]->getNodes(pts);
if (pts[0] == pts[1] ||
...
...
@@ -556,6 +556,7 @@ void CHECK_STRANGE (const char *c,BDS_Mesh &m){
++itp;
}
printf("strange(%s) = %d\n",c,strange);
#endif
}
void
computeNodalSizes
(
GFace
*
gf
,
BDS_Mesh
&
m
,
...
...
@@ -792,7 +793,7 @@ void refineMeshBDS(GFace *gf, BDS_Mesh &m, const int NIT,
double
val
=
BDS_Face_Validity
(
gf
,
m
.
triangles
[
i
]);
invalid
+=
val
<
0
?
1
:
0
;
}
double
orientation
=
invalid
>
m
.
triangles
.
size
()
/
2
?
-
1.0
:
1.0
;
double
orientation
=
invalid
>
(
int
)
m
.
triangles
.
size
()
/
2
?
-
1.0
:
1.0
;
while
(
ITER
++
<
10
){
// printf("START\n");
...
...
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