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 7351 for branches/2016/dev_INGV_UKMO_2016/NEMOGCM/TOOLS/SIREN/src/create_coord.f90 – NEMO

Ignore:
Timestamp:
2016-11-28T17:04:10+01:00 (7 years ago)
Author:
emanuelaclementi
Message:

ticket #1805 step 3: /2016/dev_INGV_UKMO_2016 aligned to the trunk at revision 7161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_INGV_UKMO_2016/NEMOGCM/TOOLS/SIREN/src/create_coord.f90

    r5609 r7351  
    99!> @file 
    1010!> @brief  
    11 !> This program create fine grid coordinate file. 
     11!> This program creates fine grid coordinate file. 
    1212!> 
    1313!> @details 
     
    2727!>    you could find a template of the namelist in templates directory. 
    2828!> 
    29 !>    create_coord.nam comprise 6 namelists:<br/> 
     29!>    create_coord.nam contains 6 namelists:<br/> 
    3030!>       - logger namelist (namlog) 
    3131!>       - config namelist (namcfg) 
     
    3535!>       - output namelist (namout) 
    3636!>     
    37 !>    @note  
    38 !>       All namelists have to be in file create_coord.nam,  
    39 !>       however variables of those namelists are all optional. 
    40 !> 
    4137!>    * _logger namelist (namlog)_:<br/> 
    4238!>       - cn_logfile   : log filename 
     
    4844!>       - cn_varcfg : variable configuration file  
    4945!> (see ./SIREN/cfg/variable.cfg) 
     46!>       - cn_dumcfg : useless (dummy) configuration file, for useless  
     47!> dimension or variable (see ./SIREN/cfg/dummy.cfg). 
    5048!> 
    5149!>    * _coarse grid namelist (namcrs)_:<br/> 
     
    6462!>             - int = interpolation method 
    6563!>             - ext = extrapolation method 
    66 !>             - flt = filter method 
    6764!>  
    6865!>                requests must be separated by ';' .<br/> 
     
    7269!>          @ref extrap and @ref filter modules.<br/> 
    7370!> 
    74 !>          Example: 'votemper: int=linear; flt=hann(2,3); ext=dist_weight',  
    75 !>          'vosaline: int=cubic'<br/> 
     71!>          Example: 'glamt: int=linear; ext=dist_weight',  
     72!>          'e1t: int=cubic/rhoi'<br/> 
    7673!>          @note  
    7774!>             If you do not specify a method which is required,  
     
    103100!> - compute offset considering grid point 
    104101!> - add global attributes in output file 
     102!> @date September, 2015 
     103!> - manage useless (dummy) variable, attributes, and dimension 
    105104!> 
    106105!> @note Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    167166 
    168167   ! namcfg 
    169    CHARACTER(LEN=lc) :: cn_varcfg = '../cfg/variable.cfg'  
     168   CHARACTER(LEN=lc) :: cn_varcfg = './cfg/variable.cfg'  
     169   CHARACTER(LEN=lc) :: cn_dumcfg = './cfg/dummy.cfg' 
    170170 
    171171   ! namcrs 
     
    194194 
    195195   NAMELIST /namcfg/ &  !  config namelist 
    196    &  cn_varcfg         !< variable configuration file 
     196   &  cn_varcfg, &       !< variable configuration file 
     197   &  cn_dumcfg          !< dummy configuration file 
    197198 
    198199   NAMELIST /namcrs/ &  !  coarse grid namelist 
     
    254255      CALL var_def_extra(TRIM(cn_varcfg)) 
    255256 
     257      ! get dummy variable 
     258      CALL var_get_dummy(TRIM(cn_dumcfg)) 
     259      ! get dummy dimension 
     260      CALL dim_get_dummy(TRIM(cn_dumcfg)) 
     261      ! get dummy attribute 
     262      CALL att_get_dummy(TRIM(cn_dumcfg)) 
     263 
    256264      READ( il_fileid, NML = namcrs ) 
    257265      READ( il_fileid, NML = namvar ) 
     
    354362   ENDDO 
    355363 
     364   ! clean 
     365   CALL dom_clean_extra( tl_dom ) 
     366 
    356367   ! close mpp files 
    357368   CALL iom_dom_close(tl_coord0) 
     
    388399   CALL file_add_att(tl_fileout, tl_att)    
    389400 
    390    tl_att=att_init("src_i_indices",(/in_imin0,in_imax0/)) 
     401   tl_att=att_init("src_i_indices",(/tl_dom%i_imin,tl_dom%i_imax/)) 
    391402   CALL file_add_att(tl_fileout, tl_att)    
    392    tl_att=att_init("src_j_indices",(/in_jmin0,in_jmax0/)) 
     403   tl_att=att_init("src_j_indices",(/tl_dom%i_jmin,tl_dom%i_jmax/)) 
    393404   CALL file_add_att(tl_fileout, tl_att) 
    394405   IF( .NOT. ALL(il_rho(:)==1) )THEN 
Note: See TracChangeset for help on using the changeset viewer.