ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/notifyCutoffs.F90
Revision: 626
Committed: Wed Jul 16 21:30:56 2003 UTC (20 years, 11 months ago) by mmeineke
File size: 849 byte(s)
Log Message:
Changed how cutoffs were handled from C. Now notifyCutoffs in Fortran notifies those who need the information of any changes to cutoffs.

File Contents

# Content
1 module notifyCutoffs
2
3 use definitions
4 use do_Forces, only: setRlistDF
5 use dipole_dipole, only: setCutoffsDipole
6 use reaction_field, only: setCutoffsRF
7 use lj, only: setCutoffLJ
8
9 implicit none
10
11 PRIVATE
12
13 public::cutoffNotify
14
15 contains
16
17 subroutine cutoffNotify( this_rcut, this_rlist, this_ecr, this_est )
18
19 real(kind=dp), intent(in) :: this_rcut, this_rlist, this_ecr, this_est
20
21 real(kind=dp) :: rtaper, rcut, rlist, ecr
22 integer :: localError
23
24
25 rcut = this_rcut
26 rlist = this_rlist
27 ecr = this_ecr
28 rtaper = this_ecr - this_est
29
30
31 call setRlistDF( rlist )
32 call setCutoffsDipole( ecr, rtaper )
33 call setCutoffsRF( ecr, rtaper )
34 call setCutoffLJ( rcut, localError )
35
36 end subroutine cutoffNotify
37
38 end module notifyCutoffs