c gloc(i,icg)=0.0D0
c write (iout,*) "poczotkoawy",i,gloc_sc(1,i,icg)
c enddo
+c write (iout,*) "dtauangle"
+c do i=1,nres
+c write (iout,*) i
+c do j=1,3
+c do k=1,3
+c write (iout,*) (dtauangle(l,k,j,i),l=1,3)
+c enddo
+c enddo
+c enddo
if (nres.lt.2) return
if ((nres.lt.3).and.(itype(1).eq.10)) return
if ((itype(1).ne.10).and.(itype(1).ne.21)) then