out-of-bounds stdfsc from Adam
[unres.git] / source / unres / src_MD-M / MD.F
index 0f12f9b..1a0f8bc 100644 (file)
@@ -1631,7 +1631,8 @@ c if the friction coefficients do not depend on surface area
           stdforcp(i)=stdfp*dsqrt(gamp)
         enddo
         do i=nnt,nct
-          stdforcsc(i)=stdfsc(itype(i))*dsqrt(gamsc(iabs(itype(i))))
+         if (itype(i).ne.ntyp1)  
+     &     stdforcsc(i)=stdfsc(itype(i))*dsqrt(gamsc(iabs(itype(i))))
         enddo
       endif
 c Open the pdb file for snapshotshots