ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/nano_mpi/src/Linux_ifc_machdep.F90
Revision: 4
Committed: Mon Jun 10 17:18:36 2002 UTC (22 years ago) by chuckv
File size: 1508 byte(s)
Log Message:
Import Root

File Contents

# User Rev Content
1 chuckv 4 !! Machine and compiler dependent definitions
2     !! Charles F. Vardeman II 2/26/02
3     !! PUBLIC VARIABLES
4     !! DEFAULT_INPUT default standard input
5     !! DEFAULT_OUTPUT default standard output
6     !! DEFAULT_ERROR default standard error
7     !! SP single precision type
8     !! DP double precision type
9     !! MAX_UNITS system dependend maximum number of open units
10     !!
11     !! Public functions
12     !! machdep_lnblnk
13     !! machdep_flus flush given unit number
14    
15    
16    
17     module definitions
18     use IFLPORT, ONLY : flush,getarg,iargc,lnblnk,&
19     clock,hostnam,date
20     IMPLICIT NONE
21     PUBLIC
22    
23    
24     !! Machine dependent input and output (fortran 2000 will fix this standard)
25     INTEGER, PARAMETER :: DEFAULT_INPUT = 5
26     INTEGER, PARAMETER :: DEFAULT_OUTPUT = 6
27     INTEGER, PARAMETER :: DEFAULT_ERROR = 0
28    
29     !! Various precision parameters
30    
31     INTEGER, PARAMETER :: SP = selected_real_kind(4)
32     INTEGER, PARAMETER :: DP = selected_real_kind(8)
33    
34    
35     !! Maximum number of fortran streams...
36     INTEGER, PARAMETER :: MAX_UNITS = 100
37    
38     !! number of dimensions in simulation
39     INTEGER, PARAMETER :: ndim = 3
40    
41     contains
42    
43     subroutine machdep_init()
44     return
45     end subroutine machdep_init
46    
47     subroutine machdep_flush(unit)
48     integer unit
49    
50     call flush(unit)
51    
52     return
53     end subroutine machdep_flush
54    
55     integer function machdep_lnblnk(a1)
56    
57     character(len=*) a1
58    
59     integer lnblnk
60     external lnblnk
61    
62     machdep_lnblnk = lnblnk(a1)
63    
64     return
65     end function machdep_lnblnk
66    
67    
68     end module definitions