1 c-----------------------------------------------------------------------
4 c Coupling to the thermostat by using the Berendsen algorithm
6 implicit real*8 (a-h,o-z)
8 include 'COMMON.CONTROL'
11 include 'COMMON.CHAIN'
12 include 'COMMON.DERIV'
14 include 'COMMON.LOCAL'
15 include 'COMMON.INTERACT'
16 include 'COMMON.IOUNITS'
17 include 'COMMON.NAMES'
18 double precision T_half,fact
20 T_half=2.0d0/(dimen*Rb)*EK
21 fact=dsqrt(1.0d0+(d_time/tau_bath)*(t_bath/T_half-1.0d0))
22 c write(iout,*) "T_half", T_half
23 c write(iout,*) "EK", EK
24 c write(iout,*) "fact", fact
26 d_t(j,0)=fact*d_t(j,0)
30 d_t(j,i)=fact*d_t(j,i)
34 if (itype(i).ne.10) then
37 d_t(j,inres)=fact*d_t(j,inres)