ENH: extend rmDir to handle removal of empty directories only - recursively remove directories that only contain other directories but no other contents. Treats dead links as non-content.
24 lines
905 B
Bash
Executable File
24 lines
905 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
fileHandler="-fileHandler collated"
|
|
decomp16="-decomposeParDict system/decomposeParDict.16"
|
|
|
|
runApplication blockMesh
|
|
|
|
##- Serial run
|
|
#runApplication snappyHexMesh -overwrite $fileHandler
|
|
#runApplication checkMesh -allTopology -allGeometry
|
|
|
|
#- Parallel run
|
|
runParallel -s decompose redistributePar -decompose -constant $fileHandler
|
|
runParallel snappyHexMesh -overwrite $fileHandler
|
|
runParallel checkMesh -allTopology -allGeometry $fileHandler
|
|
|
|
# runParallel -s redistrib $decomp16 redistributePar -constant $fileHandler
|
|
|
|
#runApplication reconstructParMesh -constant $fileHandler
|
|
|
|
#------------------------------------------------------------------------------
|