#!/bin/sh

#OPTIONS
K="1";
FIRST="1";
T=$FIRST;
R="2.266";
Q="0";
O="~/numerics_data/";
F="~/numerics_data/matrix/taylor_2_3";         
REN_F="~/numerics_data/matrix/ren_taylor";
REN_F_P="~/numerics_data/matrix/ren_taylor_2_3";
N="1.0E-9";
P="2.1";
LAST="12";
S="1.0119";
E="0.01";
D="1.0";
A="0.009";
B="-0.001";
C="1";   #same as in renorm

for f in `cat ~/.hosts`; do
    echo "starting on $T-th machine";
    ssh $f ~/Siegel_Numerics/run  -cp ~/Siegel_Numerics/matrix_column   -r $R -n $N -o $O -p $P -k $K -x $LAST -s $S -q $Q -a $A -b $B -t $T -c $C -e $E -d $D -f $F -w $REN_F -z $REN_F_P;
    T="`expr $T + 1`"
    if test $T -gt $LAST
	then
	exit;
    fi
    echo "starting on $T-th machine";
    ssh $f  ~/Siegel_Numerics/run  -cp ~/Siegel_Numerics/matrix_column   -r $R -n $N -o $O -p $P -k $K -x $LAST -s $S -q $Q -a $A -b $B -t $T -c $C -e $E -d $D -f $F -w $REN_F -z $REN_F_P;
    T="`expr $T + 1`"
    if test $T -gt $LAST
	then
	exit;
    fi
done






