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 10115 for NEMO/branches/2018/dev_r5003_MERCATOR6_CRS/NEMOGCM/TOOLS/SIREN/src/create_restart.f90 – NEMO

Ignore:
Timestamp:
2018-09-12T15:59:13+02:00 (6 years ago)
Author:
cbricaud
Message:

phase 3.6 coarsening branch with nemo_3.6_rev9192

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r5003_MERCATOR6_CRS/NEMOGCM/TOOLS/SIREN/src/create_restart.f90

    r7261 r10115  
    4848!>       - cn_varcfg : variable configuration file 
    4949!> (see ./SIREN/cfg/variable.cfg) 
     50!>       - cn_dimcfg : dimension configuration file. define dimensions allowed 
     51!> (see ./SIREN/cfg/dimension.cfg). 
    5052!>       - cn_dumcfg : useless (dummy) configuration file, for useless  
    5153!> dimension or variable (see ./SIREN/cfg/dummy.cfg). 
     
    6365!>    * _vertical grid namelist (namzgr)_:<br/> 
    6466!>       - dn_pp_to_be_computed  : 
    65 !>       - dn_ppsur              : 
    66 !>       - dn_ppa0               : 
    67 !>       - dn_ppa1               : 
    68 !>       - dn_ppa2               :  
    69 !>       - dn_ppkth              : 
    70 !>       - dn_ppkth2             : 
    71 !>       - dn_ppacr              : 
    72 !>       - dn_ppacr2             : 
    73 !>       - dn_ppdzmin            : 
    74 !>       - dn_pphmax             : 
     67!>       - dn_ppsur              : coefficient to compute vertical grid 
     68!>       - dn_ppa0               : coefficient to compute vertical grid 
     69!>       - dn_ppa1               : coefficient to compute vertical grid 
     70!>       - dn_ppa2               : double tanh function parameter 
     71!>       - dn_ppkth              : coefficient to compute vertical grid 
     72!>       - dn_ppkth2             : double tanh function parameter 
     73!>       - dn_ppacr              : coefficient to compute vertical grid 
     74!>       - dn_ppacr2             : double tanh function parameter 
     75!>       - dn_ppdzmin            : minimum vertical spacing 
     76!>       - dn_pphmax             : maximum depth 
    7577!>       - in_nlevel             : number of vertical level 
    7678!> 
    7779!>    * _partial step namelist (namzps)_:<br/> 
    78 !>       - dn_e3zps_min          : 
    79 !>       - dn_e3zps_rat          :  
     80!>       - dn_e3zps_min          : minimum thickness of partial step level (meters) 
     81!>       - dn_e3zps_rat          : minimum thickness ratio of partial step level 
    8082!> 
    8183!>    * _variable namelist (namvar)_:<br/> 
     
    158160!> @date September, 2015 
    159161!> - manage useless (dummy) variable, attributes, and dimension 
     162!> @date October, 2016 
     163!> - dimension to be used select from configuration file 
    160164!> 
    161165!> @note Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    196200   INTEGER(i4)                                        :: il_status 
    197201   INTEGER(i4)                                        :: il_fileid 
     202   INTEGER(i4)                                        :: il_attid 
    198203   INTEGER(i4)                                        :: il_nvar 
    199    INTEGER(i4)                                        :: il_attid 
    200204   INTEGER(i4)                                        :: il_imin1 
    201205   INTEGER(i4)                                        :: il_imax1 
     
    249253 
    250254   ! namcfg 
    251    CHARACTER(LEN=lc)                       :: cn_varcfg = 'variable.cfg'  
    252    CHARACTER(LEN=lc)                       :: cn_dumcfg = 'dummy.cfg' 
     255   CHARACTER(LEN=lc)                       :: cn_varcfg = './cfg/variable.cfg'  
     256   CHARACTER(LEN=lc)                       :: cn_dimcfg = './cfg/dimension.cfg' 
     257   CHARACTER(LEN=lc)                       :: cn_dumcfg = './cfg/dummy.cfg' 
    253258 
    254259   ! namcrs 
     
    304309   NAMELIST /namcfg/ &  !< configuration namelist 
    305310   &  cn_varcfg, &      !< variable configuration file 
     311   &  cn_dimcfg, &      !< dimension configuration file 
    306312   &  cn_dumcfg         !< dummy configuration file 
    307313 
     
    309315   &  cn_coord0,  &     !< coordinate file 
    310316   &  in_perio0         !< periodicity index 
    311     
     317 
    312318   NAMELIST /namfin/ &  !< fine grid namelist 
    313319   &  cn_coord1,   &    !< coordinate file 
     
    336342   &  cn_varfile, &     !< list of variable file 
    337343   &  cn_varinfo        !< list of variable and interpolation method to be used. 
    338     
     344 
    339345   NAMELIST /namnst/ &  !< nesting namelist 
    340346   &  in_rhoi,    &     !< refinement factor in i-direction 
     
    387393      CALL var_def_extra(TRIM(cn_varcfg)) 
    388394 
     395      ! get dimension allowed 
     396      CALL dim_def_extra(TRIM(cn_dimcfg)) 
     397 
    389398      ! get dummy variable 
    390399      CALL var_get_dummy(TRIM(cn_dumcfg)) 
     
    402411      ! match variable with file 
    403412      tl_multi=multi_init(cn_varfile) 
    404        
     413  
    405414      READ( il_fileid, NML = namnst ) 
    406415      READ( il_fileid, NML = namout ) 
     
    592601               !- check grid coincidence 
    593602               IF( ll_sameGrid )THEN 
     603                  il_rho(:)=1 
    594604                  CALL grid_check_coincidence( tl_mpp, tl_coord1, & 
    595605                  &                            il_imin1, il_imax1, & 
     
    896906   CALL mpp_clean(tl_mppout) 
    897907   CALL mpp_clean(tl_coord1) 
     908   CALL var_clean_extra() 
    898909 
    899910   ! close log file 
     
    12001211            &        tl_depth%d_value(:,:,:,:) ) )THEN 
    12011212 
    1202                CALL logger_warn("CREATE BOUNDARY: depth value from "//& 
     1213               CALL logger_warn("CREATE RESTART: depth value from "//& 
    12031214               &  TRIM(td_mpp%c_name)//" not conform "//& 
    12041215               &  " to those from former file(s).") 
Note: See TracChangeset for help on using the changeset viewer.