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
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))
......
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