Commit 258d20c4 authored by Célestin Marot's avatar Célestin Marot
Browse files

show number of ghosts

parent 5deef6d1
......@@ -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]) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment