From a9f2e5255a56f3b8fb6b41afca76e3f10c53d341 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Wed, 25 Apr 2012 18:10:38 +0000
Subject: [PATCH] set resultPath so the different result files don't overwrite
 each other

[[Imported from SVN: r8638]]
---
 wrinkling_testsuite/testsuite.sh | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/wrinkling_testsuite/testsuite.sh b/wrinkling_testsuite/testsuite.sh
index ddb8d6f1..b234df38 100755
--- a/wrinkling_testsuite/testsuite.sh
+++ b/wrinkling_testsuite/testsuite.sh
@@ -5,17 +5,18 @@ set -e
 runComputation(){
 
 numLevels=$1
-L_c=$2
+mu_c=$2
+L_c=$3
 
-#RESULTPATH=`pwd`/richards_surfacewater_results_${leakage}_${richardsonDamping}/
-LOGFILE="./cosserat_continuum_${L_c}_${numLevels}.log"
+RESULTPATH=`pwd`/cosserat_wrinkling_${mu_c}_${L_c}_${numLevels}/
+LOGFILE="./cosserat_wrinkling_${mu_c}_${L_c}_${numLevels}.log"
 
 #echo $RESULTPATH
 
 # Set up directory where to store the results
-# if ! test -d "$RESULTPATH"; then
-#     mkdir $RESULTPATH
-# fi
+if ! test -d "$RESULTPATH"; then
+    mkdir $RESULTPATH
+fi
 #rm $RESULTPATH/*
 
 #################################################
@@ -32,20 +33,21 @@ LOGFILE="./cosserat_continuum_${L_c}_${numLevels}.log"
 #  run the actual simulation
 #################################################
 
-../cosserat-continuum -numLevels ${numLevels} -materialParameters.L_c ${L_c} | tee ${LOGFILE}
+../cosserat-continuum -numLevels ${numLevels} -materialParameters.L_c ${L_c} -resultPath ${RESULTPATH} | tee ${LOGFILE}
 
 }
 
 
 MAXPROCS=4
 
+mu_c=0
 
 for numLevels in 1 2; do
 
     for L_c in 0.5 0.25; do     
  
         # Do one simulation run
-        runComputation $numLevels $L_c  &
+        runComputation $numLevels $mu_c $L_c  &
 
         # Never have more than MAXPROCS processes
         NPROC=$(($NPROC+1))  
-- 
GitLab