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.
Changeset 10727 for utils/tools_AGRIF_CMEMS_2020/DOMAINcfg/src/iom_def.F90 – NEMO

Ignore:
Timestamp:
2019-02-27T17:02:02+01:00 (5 years ago)
Author:
rblod
Message:

new nesting tools (attempt) and brutal cleaning of DOMAINcfg, see ticket #2129

File:
1 moved

Legend:

Unmodified
Added
Removed
  • utils/tools_AGRIF_CMEMS_2020/DOMAINcfg/src/iom_def.F90

    r10725 r10727  
    11MODULE iom_def 
    2    !!===================================================================== 
     2   !!====================================================================== 
    33   !!                    ***  MODULE  iom_def *** 
    44   !! 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/OCE 4.0 , NEMO Consortium (2018) 
    11    !! $Id: iom_def.F90 6140 2015-12-21 11:35:23Z timgraham $ 
    12    !! Software governed by the CeCILL licence (./LICENSE) 
    13    !!--------------------------------------------------------------------------------- 
    14  
     5   !!====================================================================== 
     6   !! History :  9.0  ! 2006 09  (S. Masson) Original code 
     7   !!             -   ! 2007 07  (D. Storkey) Add uldname 
     8   !!            4.0  ! 2017-11 (M. Andrejczuk) Extend IOM interface to write any 3D fields 
     9   !!---------------------------------------------------------------------- 
    1510   USE par_kind 
    1611 
     
    1813   PRIVATE 
    1914 
    20    INTEGER, PARAMETER, PUBLIC ::   jpdom_data          = 1   !: ( 1  :jpidta, 1  :jpjdta) 
     15   INTEGER, PARAMETER, PUBLIC ::   jpdom_data          = 1   !: ( 1  :jpiglo, 1  :jpjglo)    !!gm to be suppressed 
    2116   INTEGER, PARAMETER, PUBLIC ::   jpdom_global        = 2   !: ( 1  :jpiglo, 1  :jpjglo) 
    2217   INTEGER, PARAMETER, PUBLIC ::   jpdom_local         = 3   !: One of the 3 following cases 
     
    2924   INTEGER, PARAMETER, PUBLIC ::   jpdom_autodta       = 10  !:  
    3025 
    31    INTEGER, PARAMETER, PUBLIC ::   jpnf90      = 101      !: Use nf90 library 
    32  
    33    INTEGER, PARAMETER, PUBLIC ::   jprstlib  = jpnf90     !: restarts io library 
    34  
    3526   INTEGER, PARAMETER, PUBLIC ::   jp_r8    = 200      !: write REAL(8) 
    3627   INTEGER, PARAMETER, PUBLIC ::   jp_r4    = 201      !: write REAL(4) 
     
    3930   INTEGER, PARAMETER, PUBLIC ::   jp_i1    = 204      !: write INTEGER(1) 
    4031 
    41    INTEGER, PARAMETER, PUBLIC ::   jpmax_files  = 100   !: maximum number of simultaneously opened file 
    42    INTEGER, PARAMETER, PUBLIC ::   jpmax_vars   = 600 !: maximum number of variables in one file 
     32   INTEGER, PARAMETER, PUBLIC ::   jpmax_files  = 100  !: maximum number of simultaneously opened file 
     33   INTEGER, PARAMETER, PUBLIC ::   jpmax_vars   = 1200 !: maximum number of variables in one file 
    4334   INTEGER, PARAMETER, PUBLIC ::   jpmax_dims   =  4   !: maximum number of dimensions for one variable 
    4435   INTEGER, PARAMETER, PUBLIC ::   jpmax_digits =  5   !: maximum number of digits for the cpu number in the file name 
    4536 
     37 
    4638!$AGRIF_DO_NOT_TREAT 
    4739   INTEGER, PUBLIC            ::   iom_open_init = 0   !: used to initialize iom_file(:)%nfid to 0 
     40!XIOS write restart    
     41   LOGICAL, PUBLIC            ::   lwxios          !: write single file restart using XIOS 
     42   INTEGER, PUBLIC            ::   nxioso          !: type of restart file when writing using XIOS 1 - single, 2 - multiple 
     43!XIOS read restart    
     44   LOGICAL, PUBLIC            ::   lrxios          !: read single file restart using XIOS 
     45   LOGICAL, PUBLIC            ::   lxios_sini = .FALSE. ! is restart in a single file 
     46   LOGICAL, PUBLIC            ::   lxios_set  = .FALSE.  
     47 
     48 
    4849 
    4950   TYPE, PUBLIC ::   file_descriptor 
    5051      CHARACTER(LEN=240)                        ::   name     !: name of the file 
    5152      INTEGER                                   ::   nfid     !: identifier of the file (0 if closed) 
    52       INTEGER                                   ::   iolib    !: library used to read the file (jpnf90 or new formats, 
    5353                                                              !: jpioipsl option has been removed) 
    5454      INTEGER                                   ::   nvars    !: number of identified varibles in the file 
     
    6464      REAL(kind=wp), DIMENSION(jpmax_vars)      ::   scf      !: scale_factor of the variables 
    6565      REAL(kind=wp), DIMENSION(jpmax_vars)      ::   ofs      !: add_offset of the variables 
     66      INTEGER                                   ::   nlev     ! number of vertical levels 
    6667   END TYPE file_descriptor 
    6768   TYPE(file_descriptor), DIMENSION(jpmax_files), PUBLIC ::   iom_file !: array containing the info for all opened files 
     69   INTEGER, PARAMETER, PUBLIC                   :: max_rst_fields = 95 !: maximum number of restart variables defined in iom_set_rst_vars 
     70   TYPE, PUBLIC :: RST_FIELD   
     71    CHARACTER(len=30) :: vname = "NO_NAME" ! names of variables in restart file 
     72    CHARACTER(len=30) :: grid = "NO_GRID" 
     73    LOGICAL           :: active =.FALSE. ! for restart write only: true - write field, false do not write field 
     74   END TYPE RST_FIELD 
    6875!$AGRIF_END_DO_NOT_TREAT 
    69  
    70    !!===================================================================== 
     76   ! 
     77   TYPE(RST_FIELD), PUBLIC, SAVE :: rst_wfields(max_rst_fields), rst_rfields(max_rst_fields) 
     78   ! 
     79   !!---------------------------------------------------------------------- 
     80   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     81   !! $Id: iom_def.F90 10425 2018-12-19 21:54:16Z smasson $ 
     82   !! Software governed by the CeCILL license (see ./LICENSE) 
     83   !!====================================================================== 
    7184END MODULE iom_def 
Note: See TracChangeset for help on using the changeset viewer.