for i in {-30..0}; do 

     nb=$(echo "scale=5; 180 + $i*12" | bc -l)

     sed "s/d3=180/d3=$nb/" et.inp  > d_${i}.inp
	 
	 #gms d_${i}.inp 1 >& d_${i}.log
	 
	 echo -n "$nb    "
	 awk '/TOTAL ENERGY =/{print $4}'  d_${i}.log
done