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 1298 for trunk/NEMO/TOP_SRC/PISCES/p4zflx.F90 – NEMO

Ignore:
Timestamp:
2009-02-09T09:48:20+01:00 (15 years ago)
Author:
cetlod
Message:

correction of minor bug in PISCES model ( mpi case ), see ticket:327

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/PISCES/p4zflx.F90

    r1152 r1298  
    2424   USE p4zche 
    2525 
     26   USE lib_mpp 
     27 
    2628   IMPLICIT NONE 
    2729   PRIVATE 
     
    3436 
    3537   REAL(wp) :: & 
    36      tco2flx = 0.            !: Total flux of carbon per year 
     38     tco2flx                 !: Total flux of carbon per year 
    3739 
    3840   !!* Substitution 
     
    184186 
    185187      IF( MOD( kt, nspyr ) == 0 ) THEN 
     188        IF( lk_mpp ) CALL mpp_sum( tco2flx )   ! sum over the global domain 
     189 
    186190        WRITE(numout,*) ' Atmospheric pCO2    :' 
    187191        WRITE(numout,*) '-------------------- : ',kt,'  ',atcco2 
    188192        WRITE(numout,*) '(ppm)' 
    189193        WRITE(numout,*) 'Total Flux of Carbon :' 
    190         WRITE(numout,*) '-------------------- : ',tco2flx * 12./1E15 
     194        WRITE(numout,*) '-------------------- : ',tco2flx * 12. / 1e15 
    191195        WRITE(numout,*) '(GtC/an)' 
    192196        tco2flx = 0. 
     
    227231      ENDIF 
    228232 
     233      ! Initialization of total Flux of Carbon 
     234      tco2flx = 0. 
     235 
    229236   END SUBROUTINE p4z_flx_init 
    230237 
Note: See TracChangeset for help on using the changeset viewer.