gmsh_bench.sh 616 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# usage: `export GMSH=/usr/bin/gmsh; bash gmsh_bench.sh`

#make a symbolic link to /dev/null

ln -is /dev/null tmp.msh

bash benchmark_speed.sh \
-n5 \
-o results/gmsh_bench \
-f "meshes/*.geo" \
-a '/Done tetrahedrizing [0-9]+ nodes/ && !emptyMesh {emptyMesh=$8+0}
    /Done reconstructing mesh/ {bndRecov=$7+0}
    /Done meshing 3D/ {refine=$7 - emptyMesh - bndRecov}
    /Done optimizing mesh/ {opti=$7+0}
17
18
    /[0-9]+ nodes [0-9]+ elements/ {npts=$3; ntet=$5;}
    END{print emptyMesh, bndRecov, refine, opti, ntet, npts}' \
19
20
21
$GMSH -3 -format msh41 -bin -optimize_threshold 0.35 -o tmp.msh

rm tmp.msh