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 5260 for branches/2014/dev_r4650_UKMO10_Tidally_Meaned_Diagnostics/NEMOGCM/NEMO/TOP_SRC/TRP/trcdmp.F90 – NEMO

Ignore:
Timestamp:
2015-05-12T12:37:15+02:00 (9 years ago)
Author:
deazer
Message:

Merged branch with Trunk at revision 5253.
Checked with SETTE, passes modified iodef.xml for AMM12 experiment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO10_Tidally_Meaned_Diagnostics/NEMOGCM/NEMO/TOP_SRC/TRP/trcdmp.F90

    r4359 r5260  
    2323   USE prtctl_trc      ! Print control for debbuging 
    2424   USE trdtra 
    25    USE trdmod_oce 
     25   USE trd_oce 
     26   USE iom 
    2627 
    2728   IMPLICIT NONE 
     
    4243   !!---------------------------------------------------------------------- 
    4344   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    44    !! $Header: /home/opalod/NEMOCVSROOT/NEMO/TOP_SRC/TRP/trcdmp.F90,v 1.11 2006/09/01 14:03:49 opalod Exp $  
     45   !! $Id$  
    4546   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    4647   !!---------------------------------------------------------------------- 
     
    7576      !! ** Action  : - update the tracer trends tra with the newtonian  
    7677      !!                damping trends. 
    77       !!              - save the trends ('key_trdmld_trc') 
     78      !!              - save the trends ('key_trdmxl_trc') 
    7879      !!---------------------------------------------------------------------- 
    7980      !! 
     
    151152            IF( l_trdtrc ) THEN 
    152153               ztrtrd(:,:,:) = tra(:,:,:,jn) -  ztrtrd(:,:,:) 
    153                CALL trd_tra( kt, 'TRC', jn, jptra_trd_dmp, ztrtrd ) 
     154               CALL trd_tra( kt, 'TRC', jn, jptra_dmp, ztrtrd ) 
    154155            END IF 
    155156            !                                                       ! =========== 
     
    302303      !!---------------------------------------------------------------------- 
    303304      ! 
     305      INTEGER :: imask  !local file handle 
     306 
    304307      IF( nn_timing == 1 )  CALL timing_start('trc_dmp_init') 
    305308      ! 
    306       SELECT CASE ( nn_hdmp_tr ) 
    307       CASE (  -1  )   ;   IF(lwp) WRITE(numout,*) '   tracer damping in the Med & Red seas only' 
    308       CASE ( 1:90 )   ;   IF(lwp) WRITE(numout,*) '   tracer damping poleward of', nn_hdmp_tr, ' degrees' 
    309       CASE DEFAULT 
    310          WRITE(ctmp1,*) '          bad flag value for nn_hdmp_tr = ', nn_hdmp_tr 
    311          CALL ctl_stop(ctmp1) 
    312       END SELECT 
    313309 
    314310      IF( lzoom )   nn_zdmp_tr = 0           ! restoring to climatology at closed north or south boundaries 
     
    325321         &   CALL ctl_stop( 'passive trace damping need key_tradmp to compute damping coef.' ) 
    326322      ! 
    327       !                          ! Damping coefficients initialization 
    328       IF( lzoom ) THEN   ;   CALL dtacof_zoom( restotr ) 
    329       ELSE               ;   CALL dtacof( nn_hdmp_tr, rn_surf_tr, rn_bot_tr, rn_dep_tr,  & 
    330                              &            nn_file_tr, 'TRC'     , restotr                ) 
    331       ENDIF 
     323      !                          ! Read damping coefficients from file 
     324      !Read in mask from file 
     325      CALL iom_open ( cn_resto_tr, imask) 
     326      CALL iom_get  ( imask, jpdom_autoglo, 'resto', restotr) 
     327      CALL iom_close( imask ) 
    332328      ! 
    333329      IF( nn_timing == 1 )  CALL timing_stop('trc_dmp_init') 
Note: See TracChangeset for help on using the changeset viewer.