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/trcini.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/trcini.F90

    r1970 r2038  
    1818   USE oce_trc 
    1919   USE trc 
    20    USE trp_trc 
    2120   USE trcrst 
    22    USE trcctl 
    23    USE trclec 
     21   USE trcnam          ! Namelist read 
    2422   USE trcini_cfc      ! CFC      initialisation 
    2523   USE trcini_lobster  ! LOBSTER  initialisation 
     
    2826   USE trcini_my_trc   ! MY_TRC   initialisation 
    2927   USE trcdta    
    30 #if defined key_off_tra  
     28#if defined key_offline 
    3129   USE daymod 
    3230#endif 
    33    USE zpshde_trc      ! partial step: hor. derivative  
     31   USE zpshde          ! partial step: hor. derivative   (zps_hde_trc routine) 
    3432   USE in_out_manager  ! I/O manager 
    3533   USE prtctl_trc      ! Print control passive tracers (prt_ctl_trc_init routine) 
     
    7876 
    7977      ! total volume of the ocean 
    80 #if ! defined key_off_degrad 
     78#if ! defined key_degrad 
    8179      areatot = SUM( cvol(:,:,:) ) 
    8280#else 
    83       areatot = SUM( cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol 
     81      areatot = SUM( cvol(:,:,:) * facvol(:,:,:) )  ! degrad option: reduction by facvol 
    8482#endif 
    85       IF( lk_mpp )   CALL mpp_sum( areatot )     ! sum over the global domain   
     83      IF( lk_mpp )   CALL mpp_sum( areatot )        ! sum over the global domain   
    8684 
    87                                   CALL trc_lec      ! READ passive tracers namelists 
     85                                  CALL trc_nam      ! read passive tracers namelists 
    8886 
    89                                   CALL trc_ctl      ! control consistency between parameters, cpp key 
     87      ! restart for passive tracer (input) 
     88      IF( ln_rsttr ) THEN 
     89         IF(lwp) WRITE(numout,*) '       read a restart file for passive tracer : ', cn_trcrst_in 
     90         IF(lwp) WRITE(numout,*) ' ' 
     91      ELSE 
     92         IF(lwp) WRITE(numout,*) 
     93         DO jn = 1, jptra 
     94            IF( lwp .AND. lutini(jn) )  &                  ! open input FILE only IF lutini(jn) is true 
     95            &  WRITE(numout,*) '        read an initial file  for passive tracer number :', jn, ' traceur : ', ctrcnm(jn)  
     96         END DO 
     97      ENDIF 
    9098 
    9199      IF( lk_lobster ) THEN   ;   CALL trc_ini_lobster      ! LOBSTER bio-model 
     
    110118 
    111119      IF( .NOT. ln_rsttr ) THEN  
    112 #if defined key_off_tra 
     120#if defined key_offline 
    113121         CALL day_init      ! calendar 
    114122#endif 
     
    130138       
    131139      IF( ln_zps .AND. .NOT. lk_trc_c1d )   &              ! Partial steps: before horizontal gradient of passive 
    132       &                     CALL zps_hde_trc( nittrc000, trb, gtru, gtrv )       ! tracers at the bottom ocean level 
     140      &                     CALL zps_hde_trc( nittrc000, jptra, trb, gtru, gtrv )       ! tracers at the bottom ocean level 
    133141 
    134142 
     
    136144      trai = 0.e0 
    137145      DO jn = 1, jptra 
    138 #if ! defined key_off_degrad 
     146#if ! defined key_degrad 
    139147         trai = trai + SUM( trn(:,:,:,jn) * cvol(:,:,:) ) 
    140148#else 
Note: See TracChangeset for help on using the changeset viewer.