ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/UseTheForce/DarkSide/simulation_interface.F90
Revision: 2758
Committed: Wed May 17 19:54:27 2006 UTC (18 years, 3 months ago) by gezelter
File size: 1478 byte(s)
Log Message:
Adding single precision capabilities to the fortran side

File Contents

# User Rev Content
1 gezelter 1948 subroutine setFortranSim(setThisSim, CnGlobal, CnLocal, c_idents, &
2     CnLocalExcludes, CexcludesLocal, CnGlobalExcludes, CexcludesGlobal, &
3     CmolMembership, Cmfact, CnGroups, CglobalGroupMembership, &
4     status)
5 gezelter 2758 use definitions
6 gezelter 1948 use simulation
7 gezelter 2204
8 gezelter 1948 type (simtype) :: setThisSim
9     integer, intent(inout) :: CnGlobal, CnLocal
10     integer, dimension(CnLocal),intent(inout) :: c_idents
11 gezelter 2204
12 gezelter 1948 integer :: CnLocalExcludes
13     integer, dimension(2,CnLocalExcludes), intent(inout) :: CexcludesLocal
14     integer :: CnGlobalExcludes
15     integer, dimension(CnGlobalExcludes), intent(inout) :: CexcludesGlobal
16     integer, dimension(CnGlobal),intent(inout) :: CmolMembership
17     !! Result status, success = 0, status = -1
18     integer, intent(inout) :: status
19 gezelter 2204
20 gezelter 1948 !! mass factors used for molecular cutoffs
21     real ( kind = dp ), dimension(CnLocal) :: Cmfact
22     integer, intent(in):: CnGroups
23     integer, dimension(CnGlobal), intent(inout):: CglobalGroupMembership
24 gezelter 2204
25 gezelter 1948 call SimulationSetup(setThisSim, CnGlobal, CnLocal, c_idents, &
26     CnLocalExcludes, CexcludesLocal, CnGlobalExcludes, CexcludesGlobal, &
27     CmolMembership, Cmfact, CnGroups, CglobalGroupMembership, &
28     status)
29     end subroutine setFortranSim
30    
31     subroutine setFortranBox(cHmat, cHmatInv, cBoxIsOrthorhombic)
32     use simulation, only : setBox
33 gezelter 2758 use definitions
34 gezelter 1948 real(kind=dp), dimension(3,3) :: cHmat, cHmatInv
35     integer :: cBoxIsOrthorhombic
36 gezelter 2204
37 gezelter 1948 call setBox(cHmat, cHmatInv, cBoxIsOrthorhombic)
38 gezelter 2204
39 gezelter 1948 end subroutine setFortranBox