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 4148 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/TRP/trcnam_trp.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T13:54:28+01:00 (10 years ago)
Author:
cetlod
Message:

merge in trunk changes between r3853 and r3940 and commit the changes, see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/TRP/trcnam_trp.F90

    r4147 r4148  
    1313   !!   trc_nam_trp  : read the passive tracer namelist for transport 
    1414   !!---------------------------------------------------------------------- 
    15    USE trc                 ! ocean passive tracers variables 
     15   USE oce_trc              ! shared ocean passive tracers variables 
     16   USE trc                 ! passive tracers variables 
    1617   USE in_out_manager      ! ocean dynamics and active tracers variables 
    1718   USE lib_mpp           ! distributed memory computing library 
     
    4950   INTEGER , PUBLIC ::   nn_trczdf_exp       !: number of sub-time step (explicit time stepping) 
    5051 
    51  
    52 #if defined key_trcdmp 
    5352   !                                                 !!: ** newtonian damping namelist (nam_trcdmp) ** 
    54    INTEGER , PUBLIC ::   nn_hdmp_tr      =   -1       ! = 0/-1/'latitude' for damping over passive tracer 
    55    INTEGER , PUBLIC ::   nn_zdmp_tr      =    0       ! = 0/1/2 flag for damping in the mixed layer 
    56    REAL(wp), PUBLIC ::   rn_surf_tr      =   50.      ! surface time scale for internal damping        [days] 
    57    REAL(wp), PUBLIC ::   rn_bot_tr       =  360.      ! bottom time scale for internal damping         [days] 
    58    REAL(wp), PUBLIC ::   rn_dep_tr       =  800.      ! depth of transition between rn_surf and rn_bot [meters] 
    59    INTEGER , PUBLIC ::   nn_file_tr      =    2       ! = 1 create a damping.coeff NetCDF file  
    60 #endif 
     53   !                          !!* Namelist namtrc_dmp : passive tracer newtonian damping * 
     54   INTEGER , PUBLIC ::   nn_hdmp_tr    ! = 0/-1/'latitude' for damping over passive tracer 
     55   INTEGER , PUBLIC ::   nn_zdmp_tr    ! = 0/1/2 flag for damping in the mixed layer 
     56   REAL(wp), PUBLIC ::   rn_surf_tr    ! surface time scale for internal damping        [days] 
     57   REAL(wp), PUBLIC ::   rn_bot_tr     ! bottom time scale for internal damping         [days] 
     58   REAL(wp), PUBLIC ::   rn_dep_tr     ! depth of transition between rn_surf and rn_bot [meters] 
     59   INTEGER , PUBLIC ::   nn_file_tr    ! = 1 create a damping.coeff NetCDF file 
    6160 
    6261   !!---------------------------------------------------------------------- 
     
    8483      NAMELIST/namtrc_zdf/ ln_trczdf_exp  , nn_trczdf_exp 
    8584      NAMELIST/namtrc_rad/ ln_trcrad 
    86 #if defined key_trcdmp 
    87       NAMELIST/namtrc_dmp/ ln_trcdmp, nn_hdmp_tr, nn_zdmp_tr, rn_surf_tr, & 
     85      NAMELIST/namtrc_dmp/ nn_hdmp_tr, nn_zdmp_tr, rn_surf_tr, & 
    8886        &                  rn_bot_tr , rn_dep_tr , nn_file_tr 
    89 #endif 
    9087      !!---------------------------------------------------------------------- 
    9188 
     
    174171 
    175172 
    176 # if defined key_trcdmp 
    177173      REWIND( numnat_ref )              ! Namelist namtrc_dmp in reference namelist : Passive tracers newtonian damping 
    178174      READ  ( numnat_ref, namtrc_dmp, IOSTAT = ios, ERR = 909) 
     
    184180      WRITE ( numont, namtrc_dmp ) 
    185181 
    186       IF( lzoom )   nn_zdmp_trc = 0           ! restoring to climatology at closed north or south boundaries 
     182      IF( lzoom )   nn_zdmp_tr = 0           ! restoring to climatology at closed north or south boundaries 
    187183 
    188184      IF(lwp) THEN                       ! Namelist print 
     
    191187         WRITE(numout,*) '~~~~~~~' 
    192188         WRITE(numout,*) '   Namelist namtrc_dmp : set damping parameter' 
    193          WRITE(numout,*) '      add a damping term or not      ln_trcdmp = ', ln_trcdmp 
    194189         WRITE(numout,*) '      tracer damping option          nn_hdmp_tr = ', nn_hdmp_tr 
    195190         WRITE(numout,*) '      mixed layer damping option     nn_zdmp_tr = ', nn_zdmp_tr, '(zoom: forced to 0)' 
     
    199194         WRITE(numout,*) '      create a damping.coeff file    nn_file_tr = ', nn_file_tr 
    200195      ENDIF 
    201 #endif 
    202196      ! 
    203197   END SUBROUTINE trc_nam_trp 
Note: See TracChangeset for help on using the changeset viewer.