[544] | 1 | MODULE iom_def |
---|
| 2 | !!===================================================================== |
---|
| 3 | !! *** MODULE iom_def *** |
---|
| 4 | !! IOM variables definitions |
---|
| 5 | !!==================================================================== |
---|
| 6 | !! History : 9.0 ! 06 09 (S. Masson) Original code |
---|
| 7 | !!-------------------------------------------------------------------- |
---|
[556] | 8 | !!--------------------------------------------------------------------------------- |
---|
| 9 | !! OPA 9.0 , LOCEAN-IPSL (2006) |
---|
[719] | 10 | !! $Header: /home/opalod/NEMOCVSROOT/NEMO/OPA_SRC/IOM/iom_def.F90,v 1.7 2007/06/05 10:33:38 opalod Exp $ |
---|
[556] | 11 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
| 12 | !!--------------------------------------------------------------------------------- |
---|
| 13 | |
---|
[544] | 14 | USE par_kind |
---|
| 15 | |
---|
| 16 | IMPLICIT NONE |
---|
| 17 | PRIVATE |
---|
| 18 | |
---|
| 19 | INTEGER, PARAMETER, PUBLIC :: jpdom_data = 1 !: ( 1 :jpidta, 1 :jpjdta) |
---|
| 20 | INTEGER, PARAMETER, PUBLIC :: jpdom_global = 2 !: ( 1 :jpiglo, 1 :jpjglo) |
---|
| 21 | INTEGER, PARAMETER, PUBLIC :: jpdom_local = 3 !: One of the 3 following cases |
---|
| 22 | INTEGER, PARAMETER, PUBLIC :: jpdom_local_full = 4 !: ( 1 :jpi , 1 :jpi ) |
---|
| 23 | INTEGER, PARAMETER, PUBLIC :: jpdom_local_noextra = 5 !: ( 1 :nlci , 1 :nlcj ) |
---|
| 24 | INTEGER, PARAMETER, PUBLIC :: jpdom_local_noovlap = 6 !: (nldi:nlei ,nldj:nlej ) |
---|
| 25 | INTEGER, PARAMETER, PUBLIC :: jpdom_unknown = 7 !: No dimension checking |
---|
[679] | 26 | INTEGER, PARAMETER, PUBLIC :: jpdom_autoglo = 8 !: |
---|
| 27 | INTEGER, PARAMETER, PUBLIC :: jpdom_autodta = 9 !: |
---|
[544] | 28 | |
---|
[556] | 29 | INTEGER, PARAMETER, PUBLIC :: jpioipsl = 100 !: Use ioipsl (fliocom only) library |
---|
| 30 | INTEGER, PARAMETER, PUBLIC :: jpnf90 = 101 !: Use nf90 library |
---|
| 31 | INTEGER, PARAMETER, PUBLIC :: jprstdimg = 102 !: Use restart dimgs (fortran direct acces) library |
---|
[547] | 32 | #if defined key_dimgout |
---|
| 33 | INTEGER, PARAMETER, PUBLIC :: jprstlib = jprstdimg !: restarts io library |
---|
| 34 | #else |
---|
| 35 | INTEGER, PARAMETER, PUBLIC :: jprstlib = jpnf90 !: restarts io library |
---|
| 36 | #endif |
---|
[544] | 37 | |
---|
[556] | 38 | INTEGER, PARAMETER, PUBLIC :: jp_r8 = 200 !: write REAL(8) |
---|
| 39 | INTEGER, PARAMETER, PUBLIC :: jp_r4 = 201 !: write REAL(4) |
---|
| 40 | INTEGER, PARAMETER, PUBLIC :: jp_i4 = 202 !: write INTEGER(4) |
---|
| 41 | INTEGER, PARAMETER, PUBLIC :: jp_i2 = 203 !: write INTEGER(2) |
---|
| 42 | INTEGER, PARAMETER, PUBLIC :: jp_i1 = 204 !: write INTEGER(1) |
---|
[544] | 43 | |
---|
| 44 | INTEGER, PARAMETER, PUBLIC :: jpmax_files = 20 !: maximum number of simultaneously opened file |
---|
| 45 | INTEGER, PARAMETER, PUBLIC :: jpmax_vars = 60 !: maximum number of variables in one file |
---|
| 46 | INTEGER, PARAMETER, PUBLIC :: jpmax_dims = 4 !: maximum number of dimensions for one variable |
---|
| 47 | INTEGER, PARAMETER, PUBLIC :: jpmax_digits = 5 !: maximum number of digits for the cpu number in the file name |
---|
| 48 | |
---|
[571] | 49 | !$AGRIF_DO_NOT_TREAT |
---|
[556] | 50 | INTEGER, PUBLIC :: iom_init = 0 !: used to initialize iom_file(:)%nfid to 0 |
---|
[571] | 51 | |
---|
[556] | 52 | TYPE, PUBLIC :: file_descriptor |
---|
[544] | 53 | CHARACTER(LEN=240) :: name !: name of the file |
---|
| 54 | INTEGER :: nfid !: identifier of the file (0 if closed) |
---|
| 55 | INTEGER :: iolib !: library used to read the file (jpioipsl, jpnf90 or jprstdimg) |
---|
| 56 | INTEGER :: nvars !: number of identified varibles in the file |
---|
| 57 | INTEGER :: iduld !: id of the unlimited dimension |
---|
| 58 | INTEGER :: irec !: writing record position |
---|
[577] | 59 | CHARACTER(LEN=32), DIMENSION(jpmax_vars) :: cn_var !: names of the variables |
---|
[544] | 60 | INTEGER, DIMENSION(jpmax_vars) :: nvid !: id of the variables |
---|
| 61 | INTEGER, DIMENSION(jpmax_vars) :: ndims !: number of dimensions of the variables |
---|
| 62 | LOGICAL, DIMENSION(jpmax_vars) :: luld !: variable using the unlimited dimension |
---|
| 63 | INTEGER, DIMENSION(jpmax_dims,jpmax_vars) :: dimsz !: size of variables dimensions |
---|
| 64 | REAL(kind=wp), DIMENSION(jpmax_vars) :: scf !: scale_factor of the variables |
---|
| 65 | REAL(kind=wp), DIMENSION(jpmax_vars) :: ofs !: add_offset of the variables |
---|
[556] | 66 | END TYPE file_descriptor |
---|
| 67 | TYPE(file_descriptor), DIMENSION(jpmax_files), PUBLIC :: iom_file !: array containing the info for all opened files |
---|
[550] | 68 | !$AGRIF_END_DO_NOT_TREAT |
---|
[544] | 69 | |
---|
| 70 | !!===================================================================== |
---|
| 71 | END MODULE iom_def |
---|