X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD%2Fstochfric.F;h=eac09bf57a5fe2c008575361377d3f0bb69c6b76;hb=7675ab8ec26554f2fd3f2e7e427b177254872a45;hp=74eda611f2e00e92bfecd7c978d1d567425529e5;hpb=cea715862444dcb47c99e54db632e259844221b8;p=unres.git diff --git a/source/unres/src_MD/stochfric.F b/source/unres/src_MD/stochfric.F index 74eda61..eac09bf 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) @@ -369,7 +369,7 @@ c Load the friction coefficients corresponding to side chains ind=ind+1 ii = ind+m iti=itype(i) - gamvec(ii)=gamsc(iti) + gamvec(ii)=gamsc(iabs(iti)) enddo if (surfarea) call sdarea(gamvec) c if (lprn) then