mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: more consistent shell style in tutorial run/clean scripts
This commit is contained in:
@ -1,18 +1,20 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application="mdEquilibrationFoam"
|
||||
|
||||
cd periodicCubeArgon
|
||||
runApplication blockMesh
|
||||
runApplication mdInitialise
|
||||
runApplication $application
|
||||
cd ..
|
||||
for caseName in periodicCubeArgon periodicCubeWater
|
||||
do
|
||||
(
|
||||
cd $caseName || exit
|
||||
|
||||
cd periodicCubeWater
|
||||
runApplication blockMesh
|
||||
runApplication mdInitialise
|
||||
runApplication $application
|
||||
cd ..
|
||||
)
|
||||
done
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
Reference in New Issue
Block a user