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 569 by mmeineke, Tue Jul 1 21:33:45 2003 UTC vs.
Revision 620 by mmeineke, Tue Jul 15 22:29:50 2003 UTC

# Line 31 | Line 31 | module simulation
31    real(kind=dp), save :: rcut6 = 0.0_DP
32    real(kind=dp), save :: rlist2 = 0.0_DP
33    real(kind=dp), public, dimension(3,3), save :: Hmat, HmatInv
34 <  logical, save :: boxIsOrthorhombic
34 >  logical, public, save :: boxIsOrthorhombic
35    
36    public :: SimulationSetup
37    public :: getNlocal
# Line 88 | Line 88 | contains
88      nGlobal = CnGlobal
89  
90      thisSim = setThisSim
91 +
92      rcut2 = thisSim%rcut * thisSim%rcut
93      rcut6 = rcut2 * rcut2 * rcut2
94      rlist2 = thisSim%rlist * thisSim%rlist
94    box = thisSim%box
95  
96      nExcludes_Global = CnGlobalExcludes
97      nExcludes_Local = CnLocalExcludes
# Line 183 | Line 183 | contains
183    end subroutine SimulationSetup
184    
185    subroutine setBox(cHmat, cHmatInv, cBoxIsOrthorhombic)
186 <    real(kind=dp), dimension(3,3) :: cHmat, cHamtInv
186 >    real(kind=dp), dimension(3,3) :: cHmat, cHmatInv
187      integer :: cBoxIsOrthorhombic
188      integer :: smallest, status, i
189 <
189 >    
190      Hmat = cHmat
191      HmatInv = cHmatInv
192 <    if(cBoxisOrthorhombic .eq. 0 )then
192 >    if (cBoxIsOrthorhombic .eq. 0 ) then
193         boxIsOrthorhombic = .false.
194 <    else boxIsOrthorhombic = .true.
194 >    else
195 >       boxIsOrthorhombic = .true.
196      endif
197      
197
198      return    
199    end subroutine setBox
200  
# Line 246 | Line 246 | contains
246    function getRrf() result(rrf)
247      real( kind = dp ) :: rrf
248      rrf = thisSim%rrf
249 <    write(*,*) 'getRrf = ', rrf, thisSim%rrf
250 <  end function getRrf
249 >   end function getRrf
250    
251    function getRt() result(rt)
252      real( kind = dp ) :: rt
253      rt = thisSim%rt
254 <  end function getRt
254 >   end function getRt
255  
256    function getDielect() result(dielect)
257      real( kind = dp ) :: dielect

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines