X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD%2Fstochfric.F;h=cda93c394537d95b91e019f15e3d35ab3fbfb5d6;hb=173689c4abeaff1b8dd9181b5c327b6099c7916f;hp=e1d3c26fe5ba17a836013440ed8b980f08275bba;hpb=c2c3859061ca4428ee9a1bab059c2943d9a898bc;p=unres.git diff --git a/source/unres/src_MD/stochfric.F b/source/unres/src_MD/stochfric.F index e1d3c26..cda93c3 100644 --- a/source/unres/src_MD/stochfric.F +++ b/source/unres/src_MD/stochfric.F @@ -223,7 +223,7 @@ c Compute the stochastic forces acting on virtual-bond vectors. do j=1,3 ff(j)=ff(j)+force(j,i) enddo - if (itype(i+1).ne.21) then + if (itype(i+1).ne.ntyp1) then do j=1,3 stochforc(j,i)=stochforc(j,i)+force(j,i+nres+1) ff(j)=ff(j)+force(j,i+nres+1)