Zmiany do clustrowania dla D aminokwasow single chain.
[unres.git] / source / cluster / wham / src / rescode.f
index ca0305c..fb68350 100644 (file)
@@ -6,7 +6,7 @@
 
       if (itype.eq.0) then
 
-      do i=1,ntyp1
+      do i=-ntyp1,ntyp1
         if (ucase(nam).eq.restyp(i)) then
           rescode=i
           return
@@ -15,7 +15,7 @@
 
       else
 
-      do i=1,ntyp1
+      do i=-ntyp1,ntyp1
         if (nam(1:1).eq.onelet(i)) then
           rescode=i
           return