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 1254 for trunk/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2009-01-13T10:58:39+01:00 (15 years ago)
Author:
cetlod
Message:

update parameter files to take into account the new C14 bomb tracer model, see ticket:298

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/trcini.F90

    r1177 r1254  
    2121   USE trcctl 
    2222   USE trclec 
    23    USE trcini_cfc      ! CFC     initialisation 
    24    USE trcini_lobster  ! LOBSTER initialisation 
    25    USE trcini_pisces   ! PISCES  initialisation 
    26    USE trcini_my_trc   ! MY_TRC  initialisation 
     23   USE trcini_cfc      ! CFC      initialisation 
     24   USE trcini_lobster  ! LOBSTER  initialisation 
     25   USE trcini_pisces   ! PISCES   initialisation 
     26   USE trcini_c14b     ! C14 bomb initialisation 
     27   USE trcini_my_trc   ! MY_TRC   initialisation 
    2728   USE trcdta          !  
    2829   USE trdmld_trc_oce 
     
    6162      !!--------------------------------------------------------------------- 
    6263      INTEGER ::   jk, jn    ! dummy loop indices 
    63       REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zbt   ! workspace: masked grid volume 
    6464      CHARACTER (len=25) :: charout 
    6565 
     
    7272      !                 ! masked grid volume 
    7373      DO jk = 1, jpk 
    74          zbt(:,:,jk) = e1t(:,:) * e2t(:,:) * fse3t(:,:,jk) * tmask(:,:,jk) * tmask_i(:,:) 
     74         cvol(:,:,jk) = e1t(:,:) * e2t(:,:) * fse3t(:,:,jk) * tmask(:,:,jk) * tmask_i(:,:) 
    7575      END DO 
    76 #if defined key_off_degrad 
    77       DO jk = 1, jpk 
    78          zbt(:,:,:) = zbt(:,:,:) * facvol(:,:,jk)      ! degrad option: reduction by facvol 
    79       ENDDO 
     76 
     77      ! total volume of the ocean 
     78#if ! defined key_off_degrad 
     79      areatot = SUM( cvol(:,:,:) ) 
     80#else 
     81      areatot = SUM( cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol 
    8082#endif 
    81  
    82       !                 ! total volume of the ocean 
    83       areatot = SUM( zbt(:,:,:) ) 
    8483      IF( lk_mpp )   CALL mpp_sum( areatot )     ! sum over the global domain   
    8584 
     
    9897      IF( lk_cfc     ) THEN   ;   CALL trc_ini_cfc          ! CFC     tracers 
    9998      ELSE                    ;   IF(lwp) WRITE(numout,*) '          CFC not used' 
     99      ENDIF 
     100 
     101      IF( lk_c14b    ) THEN   ;   CALL trc_ini_c14b         ! C14 bomb  tracer 
     102      ELSE                    ;   IF(lwp) WRITE(numout,*) '          C14 not used' 
    100103      ENDIF 
    101104       
     
    126129      trai = 0.e0 
    127130      DO jn = 1, jptra 
    128          trai = trai + SUM( trn(:,:,:,jn) * zbt(:,:,:) ) 
     131#if ! defined key_off_degrad 
     132         trai = trai + SUM( trn(:,:,:,jn) * cvol(:,:,:) ) 
     133#else 
     134         trai = trai + SUM( trn(:,:,:,jn) * cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol 
     135#endif 
    129136      END DO       
    130137      IF( lk_mpp )   CALL mpp_sum( trai )     ! sum over the global domain   
Note: See TracChangeset for help on using the changeset viewer.