Merge branch 'prerelease-3.2.1'
[unres.git] / source / wham / src / molread_zs.F
index 6e0727f..cdc6f45 100644 (file)
@@ -48,6 +48,19 @@ C Convert sequence to numeric code
       do i=1,nres
         itype(i)=rescode(i,sequence(i),iscode)
       enddo
+      if (itype(2).eq.10.and.itype(1).eq.ntyp1) then
+        write (iout,*)
+     &   "Glycine is the first full residue, initial dummy deleted"
+        do i=1,nres
+          itype(i)=itype(i+1)
+        enddo
+        nres=nres-1
+      endif
+      if (itype(nres-1).eq.10.and.itype(nres).eq.ntyp1) then
+        write (iout,*)
+     &   "Glycine is the last full residue, terminal dummy deleted"
+        nres=nres-1
+      endif
       write (iout,*) "Numeric code:"
       write (iout,'(20i4)') (itype(i),i=1,nres)
       do i=1,nres-1