]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
In make_params, extract common options from template file.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 23 Sep 2011 14:27:40 +0000 (16:27 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 23 Sep 2011 14:27:40 +0000 (16:27 +0200)
Experimentations/ag_parameters
Experimentations/make_params

index de7856fc4cc8386d3c46b4fa3f97a220a6036389..9906b5ee1c79724261c19f943eb28afc8dbc40bb 100644 (file)
@@ -39,7 +39,7 @@ LOAD=-1000
 DEADLINE=10000
 
 # optional: additional arguments for loba (default: empty)
-#MORE_ARGS=( -r 42 )
+MORE_ARGS=( -x4 -m1e-4 -M10 )
 
 # optional: path to binary (default: ./loba)
 #LOBA=./loba
index d2098c9dd54263aa2be00aef403d72858d9c7a16..dd7e201c1a473c9cf0e3be610cfdd8b427e67959 100755 (executable)
@@ -16,10 +16,13 @@ die() {
 
 test -r "$TEMPLATE" || die "file not found: $TEMPLATE"
 
+source "$TEMPLATE" || die "cannot read file: $TEMPLATE"
+declare -a common_opts=( "${MORE_ARGS[@]}" )
+
 for flavour in "I" "R"; do
     for distrib in "1" "N"; do
         for ratio in "1000:1" "100:1" "10:1" "1:1" "1:10" "1:100" "1:1000"; do
-            declare -a opts=( -x4 -m1e-4 -M10 )
+            declare -a opts=( "${common_opts[@]}" )
             case "$flavour" in
                 "I") opts+=( -Z ) ;;
                 "R") : ;;