Revert "Merge branch 'adasko' into devel"
[unres.git] / source / unres / src_MD / rescode.f
index 12abbbe..2973ef9 100644 (file)
@@ -7,8 +7,7 @@
 
       if (itype.eq.0) then
 
-      do i=-ntyp1,ntyp1
-cc       write(iout,*),i,ucase(nam),restyp(i)
+      do i=1,ntyp1
         if (ucase(nam).eq.restyp(i)) then
           rescode=i
           return
@@ -17,7 +16,7 @@ cc       write(iout,*),i,ucase(nam),restyp(i)
 
       else
 
-      do i=-ntyp1,ntyp1
+      do i=1,ntyp1
         if (nam(1:1).eq.onelet(i)) then
           rescode=i
           return