ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/simulation_module.F90
(Generate patch)

Comparing trunk/OOPSE/libmdtools/simulation_module.F90 (file contents):
Revision 618 by mmeineke, Tue Jul 15 21:34:56 2003 UTC vs.
Revision 626 by mmeineke, Wed Jul 16 21:30:56 2003 UTC

# Line 27 | Line 27 | module simulation
27    integer, allocatable, dimension(:), public :: excludesGlobal
28    integer, allocatable, dimension(:), public :: molMembershipList
29  
30  real(kind=dp), save :: rcut2 = 0.0_DP
31  real(kind=dp), save :: rcut6 = 0.0_DP
32  real(kind=dp), save :: rlist2 = 0.0_DP
30    real(kind=dp), public, dimension(3,3), save :: Hmat, HmatInv
31    logical, public, save :: boxIsOrthorhombic
32    
33    public :: SimulationSetup
34    public :: getNlocal
35    public :: setBox
39  public :: setRcut
40  public :: getRcut
41  public :: getRlist
42  public :: getRrf
43  public :: getRt
36    public :: getDielect
37    public :: SimUsesPBC
38    public :: SimUsesLJ
# Line 88 | Line 80 | contains
80      nGlobal = CnGlobal
81  
82      thisSim = setThisSim
91    rcut2 = thisSim%rcut * thisSim%rcut
92    rcut6 = rcut2 * rcut2 * rcut2
93    rlist2 = thisSim%rlist * thisSim%rlist
83  
84      nExcludes_Global = CnGlobalExcludes
85      nExcludes_Local = CnLocalExcludes
# Line 196 | Line 185 | contains
185      
186      return    
187    end subroutine setBox
199
200  subroutine setRcut(new_rcut, status)
201    real(kind = dp) :: new_rcut
202    integer :: myStatus, status
203    thisSim%rcut = new_rcut
204    rcut2 = thisSim%rcut * thisSim%rcut
205    rcut6 = rcut2 * rcut2 * rcut2
206    status = 0
207    return
208  end subroutine setRcut
209    
210  subroutine getRcut(thisrcut,rc2,rc6,status)
211    real( kind = dp ), intent(out) :: thisrcut
212    real( kind = dp ), intent(out), optional :: rc2
213    real( kind = dp ), intent(out), optional :: rc6
214    integer, optional :: status
215
216    if (present(status)) status = 0
217    
218    if (.not.simulation_setup_complete ) then
219       if (present(status)) status = -1
220       return
221    end if
222    
223    thisrcut = thisSim%rcut
224    if(present(rc2)) rc2 = rcut2
225    if(present(rc6)) rc6 = rcut6
226  end subroutine getRcut
227  
228  subroutine getRlist(thisrlist,rl2,status)
229    real( kind = dp ), intent(out) :: thisrlist
230    real( kind = dp ), intent(out), optional :: rl2
188  
232    integer, optional :: status
233
234    if (present(status)) status = 0
235
236    if (.not.simulation_setup_complete ) then
237       if (present(status)) status = -1
238       return
239    end if
240    
241    thisrlist = thisSim%rlist
242    if(present(rl2)) rl2 = rlist2
243  end subroutine getRlist
244
245  function getRrf() result(rrf)
246    real( kind = dp ) :: rrf
247    rrf = thisSim%rrf
248    write(*,*) 'getRrf = ', rrf
249  end function getRrf
250  
251  function getRt() result(rt)
252    real( kind = dp ) :: rt
253    rt = thisSim%rt
254    write(*,*) 'getRt = ', rt
255  end function getRt
256
189    function getDielect() result(dielect)
190      real( kind = dp ) :: dielect
191      dielect = thisSim%dielect

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines