v0.10.0
do_vtk1.sh
Go to the documentation of this file.
1 #!/bin/sh
2 
3 
4 while test $# -gt 0; do
5 
6 for H5M_FILE in $1
7 do
8 
9 BASE_NAME=`basename $H5M_FILE .h5m`
10 echo $H5M_FILE convert to $BASE_NAME
11 
12 VTK_FILE=$BASE_NAME.vtk
13 if [ $VTK_FILE -nt $H5M_FILE ]; then
14 echo $H5M_FILE is older than $VTK_FILE
15 else
16 /Users/likask/MyBuild/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/moab-5.0.0-xtehawc4ptkiywo5yj56nzyttg7g3hox/bin/mbconvert $H5M_FILE $VTK_FILE
17 fi
18 
19 done
20 
21 shift
22 
23 done