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 5602 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2015-07-16T13:55:15+02:00 (9 years ago)
Author:
cbricaud
Message:

merge change from trunk rev 5003 to 5519 ( rev where branche 3.6_stable were created )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r5601 r5602  
    3333   USE crs    , ONLY : ln_crs 
    3434   USE dom_oce, ONLY : nn_cla 
     35   USE trcice          ! tracers in sea ice 
    3536  
    3637   IMPLICIT NONE 
     
    7374      CALL top_alloc()              ! allocate TOP arrays 
    7475 
    75 #if defined key_offline 
    76       ltrcdm2dc = .FALSE. 
    77 #endif 
    78  
    79       IF( ltrcdm2dc )CALL ctl_warn( ' Diurnal cycle on physics but not in PISCES or LOBSTER ' ) 
     76      l_trcdm2dc = ln_dm2dc .OR. ( ln_cpl .AND. ncpl_qsr_freq /= 1 ) 
     77      l_trcdm2dc = l_trcdm2dc  .AND. .NOT. lk_offline 
     78      IF( l_trcdm2dc .AND. lwp ) & 
     79         &   CALL ctl_warn(' Coupling with passive tracers and used of diurnal cycle. & 
     80         & Computation of a daily mean shortwave for some biogeochemical models) ') 
    8081 
    8182      IF( nn_cla == 1 )   & 
     
    102103      IF( lk_c14b    )       CALL trc_ini_c14b         ! C14 bomb  tracer 
    103104      IF( lk_my_trc  )       CALL trc_ini_my_trc       ! MY_TRC  tracers 
     105 
     106      CALL trc_ice_ini                                 ! Tracers in sea ice 
    104107 
    105108      IF( lwp ) THEN 
     
    149152            CALL zps_hde_crs( nit000, jptra, trn, gtru, gtrv ) 
    150153         ELSE 
    151             CALL zps_hde( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, sgtu=gtrui, sgtv=gtrvi )! tracers at the bottom ocean level 
     154            IF( ln_zps .AND. .NOT. lk_c1d .AND. .NOT. ln_isfcav )   &              ! Partial steps: before horizontal gradient of passive 
     155            &    CALL zps_hde    ( nit000, jptra, trn, gtru, gtrv  )  ! Partial steps: before horizontal gradient 
     156            IF( ln_zps .AND. .NOT. lk_c1d .AND.       ln_isfcav )   & 
     157            &    CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi )       ! tracers at the bottom ocean level 
    152158         ENDIF 
    153159      ENDIF 
     160 
    154161      ! 
    155162      IF( nn_dttrc /= 1 )        CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
Note: See TracChangeset for help on using the changeset viewer.