26 lines
365 B
Bash
Executable File
26 lines
365 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$1" == "-f" || "$1" == "--float" ]]; then
|
|
shift
|
|
arg='--float'
|
|
else
|
|
arg=''
|
|
fi
|
|
|
|
for geom in "$@"
|
|
do
|
|
geom_toTable $arg \
|
|
< $geom \
|
|
| \
|
|
vtk_rectilinearGrid > ${geom%.*}.vtk
|
|
|
|
geom_toTable $arg \
|
|
< $geom \
|
|
| \
|
|
vtk_addRectilinearGridData \
|
|
--vtk ${geom%.*}.vtk \
|
|
--data microstructure \
|
|
|
|
rm ${geom%.*}.vtk
|
|
done
|