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 2528 for trunk/NEMOGCM/NEMO/TOP_SRC/CFC/trcsms_cfc.F90 – NEMO

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/CFC/trcsms_cfc.F90

    r2423 r2528  
    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 
     
    3434   INTEGER , PUBLIC    ::   npyear         ! Number of years read in CFC1112 file 
    3535    
    36    REAL(wp), PUBLIC, DIMENSION(jpyear,jphem,2     ) ::   p_cfc    ! partial hemispheric pressure for CFC           
    37    REAL(wp), PUBLIC, DIMENSION(jpi,jpj)             ::   xphem    ! spatial interpolation factor for patm 
     36   REAL(wp), PUBLIC, DIMENSION(jpyear,jphem, 2    ) ::   p_cfc    ! partial hemispheric pressure for CFC           
     37   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)              ::   xphem    ! spatial interpolation factor for patm 
    3838   REAL(wp), PUBLIC, DIMENSION(jpi,jpj     ,jp_cfc) ::   qtr_cfc  ! flux at surface 
    3939   REAL(wp), PUBLIC, DIMENSION(jpi,jpj     ,jp_cfc) ::   qint_cfc ! cumulative flux  
     
    5252#  include "top_substitute.h90" 
    5353   !!---------------------------------------------------------------------- 
    54    !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     54   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    5555   !! $Id$  
    56    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     56   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    5757   !!---------------------------------------------------------------------- 
    5858 
     
    9393      !!---------------------------------------------------------------------- 
    9494 
    95       IF( kt == nittrc000 )   CALL trc_cfc_cst 
     95      IF( kt == nit000 )   CALL trc_cfc_cst 
    9696 
    9797      ! Temporal interpolation 
     
    129129               ! coefficient for solubility for CFC-11/12 in  mol/l/atm 
    130130               IF( tmask(ji,jj,1) .GE. 0.5 ) THEN 
    131                   ztap  = ( tn(ji,jj,1) + 273.16 ) * 0.01 
     131                  ztap  = ( tsn(ji,jj,1,jp_tem) + 273.16 ) * 0.01 
    132132                  zdtap = sob(1,jl) + ztap * ( sob(2,jl) + ztap * sob(3,jl) )  
    133133                  zsol  =  EXP( soa(1,jl) + soa(2,jl) / ztap + soa(3,jl) * LOG( ztap )   & 
    134                      &                    + soa(4,jl) * ztap * ztap + sn(ji,jj,1) * zdtap )  
     134                     &                    + soa(4,jl) * ztap * ztap + tsn(ji,jj,1,jp_sal) * zdtap )  
    135135               ELSE 
    136136                  zsol  = 0.e0 
     
    143143               ! Computation of speed transfert 
    144144               !    Schmidt number 
    145                zt1  = tn(ji,jj,1) 
     145               zt1  = tsn(ji,jj,1,jp_tem) 
    146146               zt2  = zt1 * zt1  
    147147               zt3  = zt1 * zt2 
     
    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.