! write(iout,*)'phi(4)=',rad2deg*phi(4)
if (nstart.lt.3) theta(3)=gen_theta(iabs(itype(2,1)),pi,phi(4))
! write(iout,*)'theta(3)=',rad2deg*theta(3)
- if (it1.ne.10) then
+ if ((it1.ne.10).and.(it.ne.ntyp1)) then
nsi=0
fail=.true.
do while (fail.and.nsi.le.maxsi)
phi(i)=gen_phi(i+1,it2,it1)
! print *,'phi(',i,')=',phi(i)
theta(i-1)=gen_theta(it2,phi(i-1),phi(i))
- if (it2.ne.10) then
+ if ((it2.ne.10).and.(it2.ne.ntyp1)) then
nsi=0
fail=.true.
do while (fail.and.nsi.le.maxsi)
call locate_next_res(i-1)
endif
theta(i)=gen_theta(it1,phi(i),phi(i+1))
- if (it1.ne.10) then
+ if ((it1.ne.10).and.(it1.ne.ntyp1)) then
nsi=0
fail=.true.
do while (fail.and.nsi.le.maxsi)