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 5608 for branches/2015/nemo_v3_6_STABLE/NEMOGCM/TOOLS/SIREN/src/create_bathy.f90 – NEMO

Ignore:
Timestamp:
2015-07-17T17:40:52+02:00 (9 years ago)
Author:
jpaul
Message:

commit changes/bugfix/... for SIREN; see ticket #1580

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/nemo_v3_6_STABLE/NEMOGCM/TOOLS/SIREN/src/create_bathy.f90

    r5037 r5608  
    2020!>    ./SIREN/bin/create_bathy create_bathy.nam 
    2121!> @endcode 
    22 !>     
     22!> <br/>     
     23!> \image html  bathy_40.png  
     24!> \image latex bathy_30.png 
     25!> 
     26!> @note  
     27!>    you could find a template of the namelist in templates directory. 
     28!> 
    2329!>    create_bathy.nam comprise 7 namelists:<br/> 
    2430!>       - logger namelist (namlog) 
     
    3743!>       - cn_logfile   : log filename 
    3844!>       - cn_verbosity : verbosity ('trace','debug','info', 
    39 !> 'warning','error','fatal') 
     45!> 'warning','error','fatal','none') 
    4046!>       - in_maxerror  : maximum number of error allowed 
    4147!> 
     
    5258!>       - cn_coord1 : coordinate file 
    5359!>       - in_perio1 : periodicity index 
    54 !>       - ln_fillclosed : fill closed sea or not 
     60!>       - ln_fillclosed : fill closed sea or not (default is .TRUE.) 
    5561!> 
    5662!>    * _variable namelist (namvar)_:<br/> 
    5763!>       - cn_varinfo : list of variable and extra information about request(s)  
    5864!>       to be used.<br/> 
    59 !>          each elements of *cn_varinfo* is a string character.<br/> 
     65!>          each elements of *cn_varinfo* is a string character 
     66!>          (separated by ',').<br/> 
    6067!>          it is composed of the variable name follow by ':',  
    6168!>          then request(s) to be used on this variable.<br/>  
    6269!>          request could be: 
    63 !>             - interpolation method 
    64 !>             - extrapolation method 
    65 !>             - filter method 
    66 !>             - > minimum value 
    67 !>             - < maximum value 
     70!>             - int = interpolation method 
     71!>             - ext = extrapolation method 
     72!>             - flt = filter method 
     73!>             - min = minimum value 
     74!>             - max = maximum value 
     75!>             - unt = new units 
     76!>             - unf = unit scale factor (linked to new units) 
    6877!> 
    6978!>                requests must be separated by ';'.<br/> 
     
    7281!>          informations about available method could be find in @ref interp, 
    7382!>          @ref extrap and @ref filter modules.<br/> 
    74 !>          Example: 'Bathymetry: 2*hamming(2,3); > 0' 
     83!>          Example: 'Bathymetry: flt=2*hamming(2,3); min=0' 
    7584!>          @note  
    7685!>             If you do not specify a method which is required,  
     
    9099!>                - ',' for line 
    91100!>                - '/' for row 
    92 !>                - '\' for level<br/> 
    93101!>                Example:<br/> 
    94102!>                   3,2,3/1,4,5  =>  @f$ \left( \begin{array}{ccc} 
     
    99107!>             - 'Bathymetry:gridT.nc' 
    100108!>             - 'Bathymetry:5000,5000,5000/5000,3000,5000/5000,5000,5000' 
    101 !> 
    102 !>          \image html  bathy_40.png  
    103 !>          \image latex bathy_30.png 
    104109!> 
    105110!>    * _nesting namelist (namnst)_:<br/> 
     
    119124!> - add header for user 
    120125!> - Bug fix, compute offset depending of grid point 
     126!> @date June, 2015 
     127!> - extrapolate all land points. 
     128!> - allow to change unit. 
    121129! 
     130!> @todo 
     131!> - use create_bathy_check_depth as in create_boundary 
     132!> - use create_bathy_check_time  as in create_boundary 
     133!> - check tl_multi is not empty 
     134!> 
    122135!> @note Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    123136!---------------------------------------------------------------------- 
     
    482495   ENDIF 
    483496 
     497   ! use additional request 
    484498   DO jk=1,tl_multi%i_nvar 
     499 
     500         ! change unit and apply factor 
     501         CALL var_chg_unit(tl_var(jk)) 
     502 
    485503         ! forced min and max value 
    486504         CALL var_limit_value(tl_var(jk)) 
     
    557575 
    558576   ! add other variables 
    559    DO jk=1,tl_multi%i_nvar 
     577   DO jk=tl_multi%i_nvar,1,-1 
    560578      CALL file_add_var(tl_fileout, tl_var(jk)) 
    561579      CALL var_clean(tl_var(jk)) 
     
    897915      IMPLICIT NONE 
    898916      ! Argument 
    899       TYPE(TVAR) , INTENT(IN) :: td_var   
    900       TYPE(TMPP) , INTENT(IN) :: td_mpp  
    901       INTEGER(i4), INTENT(IN) :: id_imin 
    902       INTEGER(i4), INTENT(IN) :: id_imax 
    903       INTEGER(i4), INTENT(IN) :: id_jmin 
    904       INTEGER(i4), INTENT(IN) :: id_jmax 
     917      TYPE(TVAR)                 , INTENT(IN) :: td_var   
     918      TYPE(TMPP)                 , INTENT(IN) :: td_mpp  
     919      INTEGER(i4)                , INTENT(IN) :: id_imin 
     920      INTEGER(i4)                , INTENT(IN) :: id_imax 
     921      INTEGER(i4)                , INTENT(IN) :: id_jmin 
     922      INTEGER(i4)                , INTENT(IN) :: id_jmax 
    905923      INTEGER(i4), DIMENSION(:,:), INTENT(IN) :: id_offset 
    906924      INTEGER(i4), DIMENSION(:)  , INTENT(IN) :: id_rho 
     
    10731091 
    10741092      ! extrapolate variable 
    1075       CALL extrap_fill_value( td_var, id_offset=id_offset(:,:), & 
    1076       &                               id_rho=id_rho(:),         & 
    1077       &                               id_iext=il_iext, id_jext=il_jext ) 
     1093      CALL extrap_fill_value( td_var ) 
    10781094 
    10791095      ! interpolate Bathymetry 
Note: See TracChangeset for help on using the changeset viewer.