X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD-M%2Freadpdb.F;h=df77ebaf8db99a11644c562a59a02f4ab3146c65;hb=e85035720a1bc8328949e1c2730d8b229304851c;hp=db10d83f832c1f2bcd373a16defe08477d611667;hpb=3dbe5ceeea4b858bc25fa1469237e697c0bf293f;p=unres.git diff --git a/source/unres/src_MD-M/readpdb.F b/source/unres/src_MD-M/readpdb.F index db10d83..df77eba 100644 --- a/source/unres/src_MD-M/readpdb.F +++ b/source/unres/src_MD-M/readpdb.F @@ -91,7 +91,7 @@ c write (iout,*) "New chain started",ires,ishift ires=ires-ishift c write (2,*) "ires",ires," ishift",ishift if (res.eq.'ACE') then - ity=10 + itype(ires)=10 else itype(ires)=rescode(ires,res,0) endif @@ -213,7 +213,7 @@ C Splits to single chain if occurs lll=lll+1 cc write (iout,*) "spraw lancuchy",(c(j,i),j=1,3) if (i.gt.1) then - if ((itype(i-1).eq.ntyp1)) then + if ((itype(i-1).eq.ntyp1).and.(i.gt.2)) then chain_length=lll-1 kkk=kkk+1 c write (iout,*) "spraw lancuchy",(c(j,i),j=1,3)