New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
iom_def.F90 in trunk/NEMOGCM/NEMO/OPA_SRC/IOM – NEMO

source: trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom_def.F90 @ 7646

Last change on this file since 7646 was 7646, checked in by timgraham, 7 years ago

Merge of dev_merge_2016 into trunk. UPDATE TO ARCHFILES NEEDED for XIOS2.
LIM_SRC_s/limrhg.F90 to follow in next commit due to change of kind (I'm unable to do it in this commit).
Merged using the following steps:

1) svn merge --reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk .
2) Resolve minor conflicts in sette.sh and namelist_cfg for ORCA2LIM3 (due to a change in trunk after branch was created)
3) svn commit
4) svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
5) svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2016/dev_merge_2016 .
6) At this stage I checked out a clean copy of the branch to compare against what is about to be committed to the trunk.
6) svn commit #Commit code to the trunk

In this commit I have also reverted a change to Fcheck_archfile.sh which was causing problems on the Paris machine.

  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1MODULE iom_def
2   !!=====================================================================
3   !!                    ***  MODULE  iom_def ***
4   !! IOM variables definitions
5   !!====================================================================
6   !! History :  9.0  ! 06 09  (S. Masson) Original code
7   !!             "   ! 07 07  (D. Storkey) Add uldname
8   !!--------------------------------------------------------------------
9   !!---------------------------------------------------------------------------------
10   !! NEMO/OPA 3.3 , NEMO Consortium (2010)
11   !! $Id$
12   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
13   !!---------------------------------------------------------------------------------
14
15   USE par_kind
16
17   IMPLICIT NONE
18   PRIVATE
19
20   INTEGER, PARAMETER, PUBLIC ::   jpdom_data          = 1   !: ( 1  :jpiglo, 1  :jpjglo)    !!gm to be suppressed
21   INTEGER, PARAMETER, PUBLIC ::   jpdom_global        = 2   !: ( 1  :jpiglo, 1  :jpjglo)
22   INTEGER, PARAMETER, PUBLIC ::   jpdom_local         = 3   !: One of the 3 following cases
23   INTEGER, PARAMETER, PUBLIC ::   jpdom_local_full    = 4   !: ( 1  :jpi   , 1  :jpi   )
24   INTEGER, PARAMETER, PUBLIC ::   jpdom_local_noextra = 5   !: ( 1  :nlci  , 1  :nlcj  )
25   INTEGER, PARAMETER, PUBLIC ::   jpdom_local_noovlap = 6   !: (nldi:nlei  ,nldj:nlej  )
26   INTEGER, PARAMETER, PUBLIC ::   jpdom_unknown       = 7   !: No dimension checking
27   INTEGER, PARAMETER, PUBLIC ::   jpdom_autoglo       = 8   !:
28   INTEGER, PARAMETER, PUBLIC ::   jpdom_autoglo_xy    = 9   !: Automatically set horizontal dimensions only
29   INTEGER, PARAMETER, PUBLIC ::   jpdom_autodta       = 10  !:
30
31   INTEGER, PARAMETER, PUBLIC ::   jpnf90      = 101      !: Use nf90 library
32
33   INTEGER, PARAMETER, PUBLIC ::   jprstlib  = jpnf90     !: restarts io library
34
35   INTEGER, PARAMETER, PUBLIC ::   jp_r8    = 200      !: write REAL(8)
36   INTEGER, PARAMETER, PUBLIC ::   jp_r4    = 201      !: write REAL(4)
37   INTEGER, PARAMETER, PUBLIC ::   jp_i4    = 202      !: write INTEGER(4)
38   INTEGER, PARAMETER, PUBLIC ::   jp_i2    = 203      !: write INTEGER(2)
39   INTEGER, PARAMETER, PUBLIC ::   jp_i1    = 204      !: write INTEGER(1)
40
41   INTEGER, PARAMETER, PUBLIC ::   jpmax_files  = 100  !: maximum number of simultaneously opened file
42   INTEGER, PARAMETER, PUBLIC ::   jpmax_vars   = 1200 !: maximum number of variables in one file
43   INTEGER, PARAMETER, PUBLIC ::   jpmax_dims   =  4   !: maximum number of dimensions for one variable
44   INTEGER, PARAMETER, PUBLIC ::   jpmax_digits =  5   !: maximum number of digits for the cpu number in the file name
45
46!$AGRIF_DO_NOT_TREAT
47   INTEGER, PUBLIC            ::   iom_open_init = 0   !: used to initialize iom_file(:)%nfid to 0
48
49   TYPE, PUBLIC ::   file_descriptor
50      CHARACTER(LEN=240)                        ::   name     !: name of the file
51      INTEGER                                   ::   nfid     !: identifier of the file (0 if closed)
52      INTEGER                                   ::   iolib    !: library used to read the file (jpnf90 or new formats,
53                                                              !: jpioipsl option has been removed)
54      INTEGER                                   ::   nvars    !: number of identified varibles in the file
55      INTEGER                                   ::   iduld    !: id of the unlimited dimension
56      INTEGER                                   ::   lenuld   !: length of the unlimited dimension (number of records in file)
57      INTEGER                                   ::   irec     !: writing record position 
58      CHARACTER(LEN=32)                         ::   uldname  !: name of the unlimited dimension
59      CHARACTER(LEN=32), DIMENSION(jpmax_vars)  ::   cn_var   !: names of the variables
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
66   END TYPE file_descriptor
67   TYPE(file_descriptor), DIMENSION(jpmax_files), PUBLIC ::   iom_file !: array containing the info for all opened files
68!$AGRIF_END_DO_NOT_TREAT
69
70   !!=====================================================================
71END MODULE iom_def
Note: See TracBrowser for help on using the repository browser.