#!/bin/bash
mat=Siz6
declare -i b b1
a=1
b=8
b1=16

while(( $b <= $b1 ))
do

cat > Tm_$mat$b.pbs << FIN
#!/bin/bash
#PBS -N aTm_$mat$b
FIN

cat FFS_eam.pbs.body >> Tm_$mat$b.pbs

cat > FFS_eam$b.temp << FIN1

cmd="bin/meam-lammps_mc-cc scripts/2nn_Tm_fast.tcl $b 1 $mat"
time \$cmd
#wipe \$PBS_NODEFILE
FIN1

cat FFS_eam$b.temp >> Tm_$mat$b.pbs

rm FFS_eam$b.temp
qsub Tm_$mat$b.pbs
rm Tm_$mat$b.pbs
sleep 0.1
let b+=1
done
