-
Notifications
You must be signed in to change notification settings - Fork 5
/
MM_driver.f
55 lines (38 loc) · 984 Bytes
/
MM_driver.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module MMechanics_m
use type_m
use constants_m
use parameters_m , only : t_i , n_t , t_f , frame_step , preview
use MM_dynamics_m , only : MolecularMechanics , preprocess_MM
public :: MMechanics
private
contains
!
!
!
!=====================
subroutine MMechanics
!=====================
implicit none
! local variables ...
real*8 :: t , t_rate
integer :: it , frame , frame_init , frame_final
it = 0
t = t_i
CALL preprocess_MM( frame_init )
! stop here to preview and check input and system info ...
If( preview ) stop
!-------------------------------------------------------
! time is PICOseconds in EHT & seconds in MM ...
t_rate = t_f / float(n_t)
frame_final = n_t
do frame = frame_init , frame_final , frame_step
t = t + t_rate
If( it >= n_t .OR. t >= t_f + t_rate ) exit
it = it + 1
CALL MolecularMechanics( t_rate , frame )
end do
end subroutine MMechanics
!
!
!
end module MMechanics_m