Skip to content
Snippets Groups Projects
Commit a9f2e525 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

set resultPath so the different result files don't overwrite each other

[[Imported from SVN: r8638]]
parent 35b74bcb
No related branches found
No related tags found
No related merge requests found
...@@ -5,17 +5,18 @@ set -e ...@@ -5,17 +5,18 @@ set -e
runComputation(){ runComputation(){
numLevels=$1 numLevels=$1
L_c=$2 mu_c=$2
L_c=$3
#RESULTPATH=`pwd`/richards_surfacewater_results_${leakage}_${richardsonDamping}/ RESULTPATH=`pwd`/cosserat_wrinkling_${mu_c}_${L_c}_${numLevels}/
LOGFILE="./cosserat_continuum_${L_c}_${numLevels}.log" LOGFILE="./cosserat_wrinkling_${mu_c}_${L_c}_${numLevels}.log"
#echo $RESULTPATH #echo $RESULTPATH
# Set up directory where to store the results # Set up directory where to store the results
# if ! test -d "$RESULTPATH"; then if ! test -d "$RESULTPATH"; then
# mkdir $RESULTPATH mkdir $RESULTPATH
# fi fi
#rm $RESULTPATH/* #rm $RESULTPATH/*
################################################# #################################################
...@@ -32,20 +33,21 @@ LOGFILE="./cosserat_continuum_${L_c}_${numLevels}.log" ...@@ -32,20 +33,21 @@ LOGFILE="./cosserat_continuum_${L_c}_${numLevels}.log"
# run the actual simulation # 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 MAXPROCS=4
mu_c=0
for numLevels in 1 2; do for numLevels in 1 2; do
for L_c in 0.5 0.25; do for L_c in 0.5 0.25; do
# Do one simulation run # Do one simulation run
runComputation $numLevels $L_c & runComputation $numLevels $mu_c $L_c &
# Never have more than MAXPROCS processes # Never have more than MAXPROCS processes
NPROC=$(($NPROC+1)) NPROC=$(($NPROC+1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment