TUT: avoid backticks in scripts

- consistent versions in headers
This commit is contained in:
Mark Olesen
2017-10-05 14:27:48 +02:00
parent b02623f974
commit 85f5fb730f
73 changed files with 84 additions and 81 deletions

View 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
#------------------------------------------------------------------------------

View File

@ -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