mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent shell style in tutorial run/clean scripts
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
(cd hartmann && cleanCase)
|
||||
(cd hartmann && cleanSamples)
|
||||
(
|
||||
cd hartmann || exit
|
||||
|
||||
cleanCase
|
||||
cleanSamples
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,11 +1,19 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Set application name
|
||||
application="mhdFoam"
|
||||
|
||||
(cd hartmann && runApplication blockMesh)
|
||||
(cd hartmann && runApplication $application)
|
||||
(cd hartmann && runApplication foamCalc components U)
|
||||
(cd hartmann && runApplication sample)
|
||||
(
|
||||
cd hartmann || exit
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication $application
|
||||
runApplication foamCalc components U
|
||||
runApplication sample
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
Reference in New Issue
Block a user