#!/bin/sh

#OPTIONS
K="1";
FIRST="1";
T=$FIRST;
R="2.266";
Q="0";
O="~/numerics_data/";
F="~/numerics_data/taylor";
REN_F="~/numerics_data/ren_taylor";
N="1.0E-9";
LAST="12";
S="1.0119";
A="0.009";
B="-0.001";
C="0";    #used to avoid computation on all machines >1, has been used to work on already computed renormalizations, after all info about the contours has been saved in ~/numerics_data/contours/    

for f in `cat ~/.hosts`; do
    echo "starting on $T-th machine";
    ssh $f ~/Siegel_Numerics/run  -cp ~/Siegel_Numerics/renorm  -r $R -n $N -o $O  -k $K -x $LAST -s $S -q $Q -a $A -b $B -t $T -c $C -f $F -p $REN_F;
    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/renorm   -r $R -n $N -o $O -k $K -x $LAST -s $S -q $Q -a $A -b $B -t $T -c $C -f $F -p $REN_F;
    T="`expr $T + 1`"
    if test $T -gt $LAST
	then
	exit;
    fi
done

