mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: adjust tutorial Allrun scripts (issue #310)
- A few without a 'cd' at the start. Use $(getApplication) directly in more places (for clarity).
This commit is contained in:
@ -4,16 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication $application
|
||||
runApplication $(getApplication)
|
||||
|
||||
if ! isTest $@
|
||||
then
|
||||
foamDictionary system/controlDict -entry endTime -set 5
|
||||
foamDictionary 2/T.liquid -entry boundaryField.wall2.q -set 1e5
|
||||
runApplication -a $application
|
||||
runApplication -a $(getApplication)
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,16 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication $application
|
||||
runApplication $(getApplication)
|
||||
|
||||
if ! isTest $@
|
||||
then
|
||||
foamDictionary system/controlDict -entry endTime -set 5
|
||||
foamDictionary 2/T.liquid -entry boundaryField.wall2.q -set 1e5
|
||||
runApplication -a $application
|
||||
runApplication -a $(getApplication)
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user