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

    r3471 r3481  
    4242   INTEGER ::  numsil  !: logical unit for Si budget 
    4343   INTEGER ::  numfer  !: logical unit for Fer budget 
     44   INTEGER ::  numco2  !: logical unit for co2 budget 
    4445 
    4546   !!---------------------------------------------------------------------- 
     
    147148      END IF 
    148149      ! 
     150       ! 
     151       IF( kt == nitend ) THEN 
     152         ! 
     153         t_atm_co2_flx  = t_atm_co2_flx / glob_sum( e1e2t(:,:) ) 
     154         t_oce_co2_flx  = t_oce_co2_flx         * 12. / 1.e15 * (-1 ) 
     155         tpp            = tpp           * 1000. * 12. / 1.E15 
     156         t_oce_co2_exp  = t_oce_co2_exp * 1000. * 12. / 1.E15 
     157         ! 
     158         IF(lwp) WRITE(numco2,9000) ndastp, t_atm_co2_flx, t_oce_co2_flx, tpp, t_oce_co2_exp 
     159         ! 
     160      ENDIF 
     161 
    149162      IF( nn_timing == 1 )  CALL timing_stop('p4z_sms') 
     163      ! 
     164 9000  FORMAT(i8,f10.5,e18.10,f10.5,f10.5) 
    150165      ! 
    151166   END SUBROUTINE p4z_sms 
     
    368383            CALL ctl_opn( numfer, 'iron.budget', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 
    369384         ENDIF 
     385         IF(lwp) CALL ctl_opn( numco2, 'carbon.budget', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 
    370386      ENDIF 
    371387 
     
    401417         ENDIF 
    402418       ENDIF 
     419       ! 
    403420 9500  FORMAT(i10,e18.10)      
    404421       ! 
Note: See TracChangeset for help on using the changeset viewer.