1 c---------------------------------------------------------------------
2 subroutine sddir_verlet1
3 c Applying velocity Verlet algorithm - step 1 to velocities
4 implicit real*8 (a-h,o-z)
6 include 'COMMON.CONTROL'
10 include 'COMMON.LANGEVIN'
12 include 'COMMON.LANGEVIN.lang0'
14 include 'COMMON.CHAIN'
15 include 'COMMON.DERIV'
17 include 'COMMON.LOCAL'
18 include 'COMMON.INTERACT'
19 include 'COMMON.IOUNITS'
20 include 'COMMON.NAMES'
21 c Revised 3/31/05 AL: correlation between random contributions to
22 c position and velocity increments included.
23 double precision sqrt13 /0.57735026918962576451d0/ ! 1/sqrt(3)
24 double precision adt,adt2
26 c Add the contribution from BOTH friction and stochastic force to the
27 c coordinates, but ONLY the contribution from the friction forces to velocities
30 adt=(d_a_old(j,0)+d_af_work(j))*d_time
31 adt2=0.5d0*adt+sqrt13*d_as_work(j)*d_time
32 dc(j,0)=dc_old(j,0)+(d_t_old(j,0)+adt2)*d_time
33 d_t_new(j,0)=d_t_old(j,0)+0.5d0*adt
34 d_t(j,0)=d_t_old(j,0)+adt
39 adt=(d_a_old(j,i)+d_af_work(ind+j))*d_time
40 adt2=0.5d0*adt+sqrt13*d_as_work(ind+j)*d_time
41 dc(j,i)=dc_old(j,i)+(d_t_old(j,i)+adt2)*d_time
42 d_t_new(j,i)=d_t_old(j,i)+0.5d0*adt
43 d_t(j,i)=d_t_old(j,i)+adt
48 if (itype(i).ne.10) then
51 adt=(d_a_old(j,inres)+d_af_work(ind+j))*d_time
52 adt2=0.5d0*adt+sqrt13*d_as_work(ind+j)*d_time
53 dc(j,inres)=dc_old(j,inres)+(d_t_old(j,inres)+adt2)*d_time
54 d_t_new(j,inres)=d_t_old(j,inres)+0.5d0*adt
55 d_t(j,inres)=d_t_old(j,inres)+adt