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

    r3443 r3481  
    5757   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: satmco2   !: atmospheric pco2  
    5858 
    59    REAL(wp) ::  t_oce_co2_flx               !: Total ocean carbon flux  
    60    REAL(wp) ::  t_atm_co2_flx               !: global mean of atmospheric pco2 
    61    REAL(wp) ::  area                        !: ocean surface 
    6259   REAL(wp) ::  xconv  = 0.01_wp / 3600._wp !: coefficients for conversion  
    6360 
     
    200197 
    201198      t_oce_co2_flx = t_oce_co2_flx + glob_sum( oce_co2(:,:) )            ! Cumulative Total Flux of Carbon 
    202       IF( kt == nitend ) THEN 
    203          t_atm_co2_flx = glob_sum( satmco2(:,:) * patm(:,:) * e1e2t(:,:) )            ! Total atmospheric pCO2 
    204          ! 
    205          t_oce_co2_flx = (-1.) * t_oce_co2_flx  * 12. / 1.e15             ! Conversion in PgC ; negative for out of the ocean 
    206          t_atm_co2_flx = t_atm_co2_flx  / area                            ! global mean of atmospheric pCO2 
    207          ! 
    208          IF( lwp) THEN 
    209             WRITE(numout,*) 
    210             WRITE(numout,*) ' Global mean of atmospheric pCO2 (ppm) at it= ', kt, ' date= ', ndastp 
    211             WRITE(numout,*) '------------------------------------------------------- :  ',t_atm_co2_flx 
    212             WRITE(numout,*) 
    213             WRITE(numout,*) ' Cumulative total Flux of Carbon out of the ocean (PgC) :' 
    214             WRITE(numout,*) '-------------------------------------------------------  ',t_oce_co2_flx 
    215          ENDIF 
    216          ! 
    217       ENDIF 
     199      t_atm_co2_flx = glob_sum( satmco2(:,:) * patm(:,:) * e1e2t(:,:) )   ! Total atmospheric pCO2 
    218200 
    219201      IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
     
    299281      ENDIF 
    300282      ! 
    301       area = glob_sum( e1e2t(:,:) )        ! interior global domain surface 
    302       ! 
    303283      oce_co2(:,:)  = 0._wp                ! Initialization of Flux of Carbon 
    304284      t_atm_co2_flx = 0._wp 
Note: See TracChangeset for help on using the changeset viewer.