Skip to content
Snippets Groups Projects
Commit 15e0583c authored by Andrew Heather's avatar Andrew Heather
Browse files

TUT: tutorial script updates

parent 069768c5
Branches
Tags
No related merge requests found
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
if notTest $@
then
foamRunTutorials
foamRunTutorials -skipFirst
else
echo "--- Skipping testing of tutorials in : $PWD" 1>&2
fi
......
......@@ -5,4 +5,4 @@ cd ${0%/*} || exit 1 # run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
\rm -r results
\rm -rf results
......@@ -21,7 +21,7 @@ runApplication blockMesh
for val in ${Models[@]}; do
echo "Running the case with the model: $val"
\cp 0/U.$val 0/U
\rm -r constant/boundaryData/inlet
\rm -rf constant/boundaryData/inlet
\cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication pimpleFoam
gnuplot plot.patch
......
......@@ -20,9 +20,9 @@ runApplication blockMesh
# Compute parallel and collect data
for val in ${Models[@]}; do
echo "Running the case with the model: $val"
\rm 0/U*
\rm -f 0/U*
\cp 0.orig/U.$val 0/U
\rm -r constant/boundaryData/inlet
\rm -rf constant/boundaryData/inlet
\cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication decomposePar
runParallel pimpleFoam
......@@ -34,4 +34,3 @@ for val in ${Models[@]}; do
cleanTimeDirectories
\rm -rf processor* > /dev/null 2>&1
done
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment