- use -name test before -type test to avoid calling stat(2) on every file. - use -delete instead of -exec rm to avoid forking
29 lines
685 B
Bash
Executable File
29 lines
685 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Make dummy 0 directory
|
|
mkdir 0
|
|
|
|
runApplication blockMesh
|
|
\cp system/decomposeParDict.hierarchical system/decomposeParDict
|
|
runApplication decomposePar
|
|
|
|
\cp system/decomposeParDict.ptscotch system/decomposeParDict
|
|
runParallel snappyHexMesh -overwrite
|
|
|
|
find . -iname '*level*' -type f -delete
|
|
|
|
# - Set the initial fields
|
|
restore0Dir -processor
|
|
|
|
runParallel topoSet
|
|
runParallel $(getApplication)
|
|
|
|
runApplication reconstructParMesh -constant
|
|
runApplication reconstructPar
|
|
|
|
#------------------------------------------------------------------------------
|