v0.14.0
do_vtk.sh
Go to the documentation of this file.
1 #!/bin/sh
2 
3 
4 for H5M_FILE in out_*h5m
5 do
6 
7 BASE_NAME=`basename $H5M_FILE .h5m`
8 
9 
10 VTK_FILE=$BASE_NAME.vtk
11  if [ $VTK_FILE -nt $H5M_FILE ]; then
12  echo $H5M_FILE is older than $VTK_FILE
13  else
14  echo $H5M_FILE convert to $BASE_NAME.vtk
15  mbconvert $H5M_FILE $VTK_FILE
16  fi
17 
18 done