24 lines
432 B
Bash
Executable File
24 lines
432 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Get application name from directory
|
|
parentDir=`dirname $PWD`
|
|
application=`basename $parentDir`
|
|
|
|
# Find and source additional functions
|
|
tutorialPath=$PWD
|
|
while [ ! -f $tutorialPath/RunFunctions ]
|
|
do
|
|
tutorialPath="$tutorialPath/.."
|
|
done
|
|
. $tutorialPath/RunFunctions
|
|
|
|
|
|
|
|
runApplication blockMesh
|
|
compileApplication setShock
|
|
runApplication setShock
|
|
runApplication $application
|
|
runApplication magU
|
|
runApplication sample
|
|
|