mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: avoid backticks in scripts
- consistent versions in headers
This commit is contained in:
9
tutorials/IO/fileHandler/Allclean
Executable file
9
tutorials/IO/fileHandler/Allclean
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -6,9 +6,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
application=$(getApplication)
|
||||
|
||||
#- Test writing collated format
|
||||
runApplication decomposePar -fileHandler collated
|
||||
runParallel `getApplication` -fileHandler collated
|
||||
runParallel $application -fileHandler collated
|
||||
runApplication reconstructPar -latestTime -fileHandler collated
|
||||
|
||||
#- Delete collated files
|
||||
@ -16,10 +18,10 @@ rm -rf processors
|
||||
|
||||
#- Test writing uncollated format
|
||||
runApplication -s uncollated decomposePar -fileHandler uncollated
|
||||
runParallel -s uncollated `getApplication` -fileHandler uncollated
|
||||
runParallel -s uncollated $application -fileHandler uncollated
|
||||
|
||||
#- Restart from uncollated
|
||||
runParallel -s collated `getApplication` -fileHandler collated
|
||||
runParallel -s collated $application -fileHandler collated
|
||||
runApplication -s collated reconstructPar -latestTime -fileHandler collated
|
||||
|
||||
#- Convert the parallel format to uncollated
|
||||
|
||||
Reference in New Issue
Block a user