Skip to content
Snippets Groups Projects
Commit 6779036a authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: paraFoam -touch-proc option for processor directories

- Can be useful when investigating mesh topologies
parent 8005e2b4
Branches
Tags
No related merge requests found
......@@ -39,12 +39,14 @@ usage() {
Usage: ${0##*/} [OPTION] [--] [PARAVIEW_OPTION]
options:
-block use blockMesh reader (uses .blockMesh extension)
-block use blockMesh reader (uses .blockMesh extension)
-case <dir> specify alternative case directory, default is the cwd
-region <name> specify alternative mesh region
-touch only create the file (eg, .blockMesh, .OpenFOAM, etc)
-touchAll create .blockMesh, .OpenFOAM files (and for all regions)
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-touch create the file (eg, .blockMesh, .OpenFOAM, .foam, ...)
-touch-all | -touchAll
create .blockMesh, .OpenFOAM files (and for all regions)
-touch-proc same as '-touch' but for each processor
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-help print the usage
--help paraview help
......@@ -102,11 +104,16 @@ do
unset plugin
shift
;;
-touchAll)
-touch-all | -touchAll)
optTouch=all
unset plugin
shift
;;
-touch-proc*)
optTouch=processor
unset plugin
shift
;;
--)
shift
break # Stop here, treat balance as paraview options
......@@ -205,6 +212,16 @@ all)
done
exit 0
;;
processor)
for i in processor*
do
(
cd $i 2> /dev/null && touch "${caseFile%.*}#${i#processor}.$extension"
)
done
echo "Created '$caseFile' for processor directories" 1>&2
exit 0
;;
true)
touch "$caseFile"
echo "Created '$caseFile'" 1>&2
......
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