X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD-M%2FMREMD.F;h=96b910995b606f1259f2b0709f328db268d4b55d;hb=04faa577d15f891beaa242b6285f3d900a6a6634;hp=493dbb59ff6bebec0f7fcb95f1639d8c6268094b;hpb=3f4d3bd479a6446c6b15c317d038a1ec49b7ce6f;p=unres.git diff --git a/source/unres/src_MD-M/MREMD.F b/source/unres/src_MD-M/MREMD.F index 493dbb5..96b9109 100644 --- a/source/unres/src_MD-M/MREMD.F +++ b/source/unres/src_MD-M/MREMD.F @@ -1274,6 +1274,18 @@ co & " rescaling weights with temperature",t_bath stdfsc(i)=dsqrt(2*Rb*t_bath/d_time) enddo +c Compute the standard deviations of stochastic forces for Langevin dynamics +c if the friction coefficients do not depend on surface area + if (lang.gt.0 .and. .not.surfarea) then + do i=nnt,nct-1 + stdforcp(i)=stdfp*dsqrt(gamp) + enddo + do i=nnt,nct + if (itype(i).ne.ntyp1) stdforcsc(i)=stdfsc(iabs(itype(i))) + & *dsqrt(gamsc(iabs(itype(i)))) + enddo + endif + cde write(iout,*) 'REMD after',me,t_bath time08=MPI_WTIME() if (me.eq.king .or. .not. out1file) then