Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hextreme
hxt_seqDel
Commits
258d20c4
Commit
258d20c4
authored
Sep 26, 2020
by
Célestin Marot
Browse files
show number of ghosts
parent
5deef6d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.c
View file @
258d20c4
...
...
@@ -196,7 +196,12 @@ int main(int argc, char **argv)
clock_t
time2
=
clock
();
printf
(
"Delaunay insertion: %f s
\n
"
,
(
double
)
(
time2
-
time1
)
/
CLOCKS_PER_SEC
);
printf
(
"%u vertices, %lu tetrahedra, %f s
\n
"
,
mesh
->
num_vertices
,
mesh
->
tetrahedra
.
num
,
(
double
)
(
time2
-
time0
)
/
CLOCKS_PER_SEC
);
uint64_t
numGhosts
=
0
;
for
(
uint64_t
i
=
0
;
i
<
mesh
->
tetrahedra
.
num
;
i
++
)
{
if
(
mesh
->
tetrahedra
.
node
[
4
*
i
+
3
]
==
HXT_GHOST_VERTEX
)
numGhosts
++
;
}
printf
(
"%u vertices, %lu Delaunay tetrahedra, %lu ghosts, %f s
\n
"
,
mesh
->
num_vertices
,
mesh
->
tetrahedra
.
num
-
numGhosts
,
numGhosts
,
(
double
)
(
time2
-
time0
)
/
CLOCKS_PER_SEC
);
if
(
argv
[
2
][
0
]
!=
'-'
||
argv
[
2
][
1
])
HXT_CHECK
(
gmshTetDraw
(
mesh
,
argv
[
2
])
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment