#!/bin/sh

currDir=`pwd`
application=`basename $currDir`
cases="cylinder pitzDaily"
utility=analyticalCylinder

tutorialPath=`dirname $0`/..
. $tutorialPath/RunFunctions

for case in $cases
do
    runApplication blockMesh $case
    runApplication $application $case

    if [ "$case" = "cylinder" ] 
    then
        compileApplication $case $utility
        runApplication $utility $case
    fi

    runApplication streamFunction $case
done 
