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 3481 for branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsink.F90 – NEMO

Ignore:
Timestamp:
2012-10-02T14:38:42+02:00 (12 years ago)
Author:
cetlod
Message:

NEMOGCM_dev_r3438_LOCEAN15_PISLOB: output a text file for carbon budget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsink.F90

    r3471 r3481  
    238238      END DO 
    239239 
    240       ! 
    241       IF( ln_diatrc ) THEN 
     240     ! Total primary production per year 
     241     t_oce_co2_exp = t_oce_co2_exp + glob_sum( ( sinking(:,:,iksed+1) + sinking2(:,:,iksed+1) ) * e1e2t(:,:) * tmask(:,:,1) ) 
     242     ! 
     243     IF( ln_diatrc ) THEN 
    242244         zrfact2 = 1.e3 * rfact2r 
    243245         ik1  = iksed + 1 
     
    273275      !!                  ***  ROUTINE p4z_sink_init  *** 
    274276      !!---------------------------------------------------------------------- 
     277 
     278      t_oce_co2_exp = 0._wp 
     279      ! 
    275280   END SUBROUTINE p4z_sink_init 
    276281 
     
    474479      END DO 
    475480 
     481     ! Total primary production per year 
     482     t_oce_co2_exp = t_oce_co2_exp + glob_sum( ( sinking(:,:,:) ) * cvol(:,:,:) ) 
     483     ! 
    476484      IF( ln_diatrc ) THEN 
    477485         ! 
     
    655663      END DO 
    656664      ! 
     665      t_oce_co2_exp = 0._wp 
     666      ! 
    657667      IF( nn_timing == 1 )  CALL timing_stop('p4z_sink_init') 
    658668      ! 
Note: See TracChangeset for help on using the changeset viewer.