debug w poszukiwaniu bledu w ostatniej reszcie
[unres.git] / source / unres / src_MD-M / parmread.F
index 4dd6b0a..9bc2d20 100644 (file)
@@ -397,6 +397,7 @@ C Read torsional parameters
 C
       read (itorp,*,end=113,err=113) ntortyp
       read (itorp,*,end=113,err=113) (itortyp(i),i=1,ntyp)
+      itortyp(ntyp1)=ntortyp+1
 c      write (iout,*) 'ntortyp',ntortyp
       do i=1,ntortyp
        do j=1,ntortyp
@@ -609,7 +610,7 @@ cc maxinter is maximum interaction sites
             v0ijsccor=v0ijsccor+vlor1sccor(k,i,j)/
      &(1+vlor3sccor(k,i,j)**2)
           enddo
-          v0sccor(i,j)=v0ijsccor
+          v0sccor(l,i,j)=v0ijsccor
         enddo
       enddo
       enddo