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 1256 – NEMO

Changeset 1256


Ignore:
Timestamp:
2009-01-13T11:32:36+01:00 (15 years ago)
Author:
cetlod
Message:

Add a namelist parameter to use or not the trcrad routine, see ticket:300

Location:
trunk/NEMO/TOP_SRC/TRP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/TRP/trctrp.F90

    r1146 r1256  
    1313   !!---------------------------------------------------------------------- 
    1414   USE oce_trc         ! ocean dynamics and active tracers variables 
    15    USE trp_trc             ! ocean passive tracers variables  
     15   USE trp_trc         ! ocean passive tracers variables  
    1616   USE trctrp_lec      ! passive tracers transport parameters 
    17    USE prtctl_trc     ! Print control for debbuging 
     17   USE prtctl_trc      ! Print control for debbuging 
    1818 
    1919   USE trcbbl          ! bottom boundary layer               (trc_bbl routine) 
     
    112112 
    113113                               CALL trc_nxt( kt )            ! tracer fields at next time step 
    114   
    115                                CALL trc_rad( kt )            ! Correct artificial negative concentrations 
     114      
     115      IF( ln_trcrad )          CALL trc_rad( kt )            ! Correct artificial negative concentrations 
    116116      !                                                      ! especially useful when isopycnal mixing is used 
    117117      !                                                       
  • trunk/NEMO/TOP_SRC/TRP/trctrp_lec.F90

    r1146 r1256  
    3838   LOGICAL , PUBLIC ::   ln_trcldf_hor   = .FALSE.    !: horizontal (geopotential) direction 
    3939   LOGICAL , PUBLIC ::   ln_trcldf_iso   = .TRUE.     !: iso-neutral direction 
     40 
     41   !                                                 !!: ** Treatment of Negative concentrations ( nam_trcrad ) 
     42   LOGICAL , PUBLIC ::   ln_trcrad       = .TRUE.     !: flag to artificially correct negative concentrations 
    4043 
    4144   !                                                 !!: flag of the lateral diff. scheme used 
     
    9699         &                 ahtrc0, ahtrb0, aeivtr0, trcrat 
    97100      NAMELIST/namtopzdf/ ln_trczdf_exp, n_trczdf_exp 
     101      NAMELIST/namtoprad/ ln_trcrad 
    98102#if defined key_trcdmp 
    99103      NAMELIST/namtopdmp/ ndmptr, ndmpftr, nmldmptr, sdmptr, bdmptr, hdmptr 
     
    169173      ENDIF 
    170174 
     175      ! 
     176      REWIND( numnat )                 !   Read Namelist namtoprad 
     177      READ  ( numnat, namtoprad ) 
     178 
     179      IF(lwp) THEN                     !   ! Control print 
     180         WRITE(numout,*) 
     181         WRITE(numout,*) '   Namelist namtoprad : treatment of negative concentrations' 
     182         WRITE(numout,*) '      correct artificially negative concen. or not ln_trcrad = ', ln_trcrad 
     183      ENDIF 
     184 
     185 
    171186# if defined key_trcdmp 
    172187      !                                ! passive tracres damping term 
Note: See TracChangeset for help on using the changeset viewer.