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 2038 for branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/CFC/trcsms_cfc.F90 – NEMO

Ignore:
Timestamp:
2010-08-02T12:57:40+02:00 (14 years ago)
Author:
cetlod
Message:

Apply the merge to passive tracers, see ticket:693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/CFC/trcsms_cfc.F90

    r1459 r2038  
    1818   USE par_trc      ! TOP parameters 
    1919   USE trc          ! TOP variables 
    20    USE trdmld_trc_oce 
    21    USE trdmld_trc 
     20   USE trdmod_oce 
     21   USE trdmod_trc 
    2222   USE iom 
    2323 
     
    3232   INTEGER , PUBLIC    ::   nyear_res      ! restoring time constant (year) 
    3333   INTEGER , PUBLIC    ::   nyear_beg      ! initial year (aa)  
     34   INTEGER , PUBLIC    ::   npyear         ! Number of years read in CFC1112 file 
    3435    
    3536   REAL(wp), PUBLIC, DIMENSION(jpyear,jphem, jp_cfc) ::   p_cfc    ! partial hemispheric pressure for CFC           
     
    9697      ! Temporal interpolation 
    9798      ! ---------------------- 
    98       iyear_beg = nyear + ( nyear_res - 1900 - nyear_beg  ) 
     99      iyear_beg = nyear - 1900 
    99100      IF ( nmonth <= 6 ) THEN 
    100          iyear_beg = iyear_beg - 2 + nyear_beg 
     101         iyear_beg = iyear_beg - 1 
    101102         im1       =  6 - nmonth + 1 
    102103         im2       =  6 + nmonth - 1 
    103104      ELSE 
    104          iyear_beg = iyear_beg - 1 + nyear_beg 
    105105         im1       = 12 - nmonth + 7 
    106106         im2       =      nmonth - 7 
     
    156156               ! trn in pico-mol/l idem qtr; ak in en m/s 
    157157               qtr_cfc(ji,jj,jl) = -zak_cfc * ( trb(ji,jj,1,jn) - zca_cfc )   & 
    158 #if defined key_off_degrad 
     158#if defined key_degrad 
    159159                  &                         * facvol(ji,jj,1)                           & 
    160160#endif 
     
    173173      !                                                     !----------------! 
    174174 
    175 #if defined key_trc_diaadd  
     175#if defined key_diatrc  
    176176      ! Save diagnostics , just for CFC11 
    177177# if ! defined key_iomput 
     
    187187          DO jn = jp_cfc0, jp_cfc1 
    188188            ztrcfc(:,:,:) = tra(:,:,:,jn) 
    189             CALL trd_mod_trc( ztrcfc, jn, jptrc_trd_sms, kt )   ! save trends 
     189            CALL trd_mod_trc( ztrcfc, jn, jptra_trd_sms, kt )   ! save trends 
    190190          END DO 
    191191      END IF 
Note: See TracChangeset for help on using the changeset viewer.