1 c---------------------------------------------------------------------
2 subroutine predict_edrift(epdrift)
4 c Predict the drift of the potential energy
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'
18 double precision epdrift,epdriftij
19 c Drift of the potential energy
25 epdriftij=dabs((d_a(j,i)-d_a_old(j,i))*gcart(j,i))
26 if (lmuca) epdriftij=epdriftij*factor
27 c write (iout,*) "back",i,j,epdriftij
28 if (epdriftij.gt.epdrift) epdrift=epdriftij
32 if (itype(i).ne.10) then
35 & dabs((d_a(j,i+nres)-d_a_old(j,i+nres))*gxcart(j,i))
36 if (lmuca) epdriftij=epdriftij*factor
37 c write (iout,*) "side",i,j,epdriftij
38 if (epdriftij.gt.epdrift) epdrift=epdriftij
42 epdrift=0.5d0*epdrift*d_time*d_time
43 c write (iout,*) "epdrift",epdrift