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 11993 for NEMO/trunk/src/TOP/PISCES/P4Z/p4zflx.F90 – NEMO

Ignore:
Timestamp:
2019-11-28T11:20:53+01:00 (5 years ago)
Author:
cetlod
Message:

trunk : undo bad commit. Oups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/TOP/PISCES/P4Z/p4zflx.F90

    r11989 r11993  
    160160            zfld = zfco2 * chemc(ji,jj,1) * zkgco2(ji,jj)  ! (mol/L) * (m/s) 
    161161            zflu = zh2co3(ji,jj) * zkgco2(ji,jj)                                   ! (mol/L) (m/s) ? 
    162             oce_co2(ji,jj) = ( zfld - zflu ) * tmask(ji,jj,1)  
     162            oce_co2(ji,jj) = ( zfld - zflu ) * rfact2 * e1e2t(ji,jj) * tmask(ji,jj,1) * 1000. 
    163163            ! compute the trend 
    164             tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + oce_co2(ji,jj) * rfact2 / e3t_n(ji,jj,1) 
     164            tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + ( zfld - zflu ) * rfact2 / e3t_n(ji,jj,1) * tmask(ji,jj,1) 
    165165 
    166166            ! Compute O2 flux  
     
    174174      IF( iom_use("tcflx") .OR. iom_use("tcflxcum") .OR. kt == nitrst   & 
    175175         &                 .OR. (ln_check_mass .AND. kt == nitend) )    & 
    176          t_oce_co2_flx  = glob_sum( 'p4zflx', oce_co2(:,:) * e1e2t(:,:) * 1000. )                    !  Total Flux of Carbon 
     176         t_oce_co2_flx  = glob_sum( 'p4zflx', oce_co2(:,:) )                    !  Total Flux of Carbon 
    177177      t_oce_co2_flx_cum = t_oce_co2_flx_cum + t_oce_co2_flx       !  Cumulative Total Flux of Carbon 
    178178!      t_atm_co2_flx     = glob_sum( 'p4zflx', satmco2(:,:) * e1e2t(:,:) )       ! Total atmospheric pCO2 
     
    186186 
    187187      IF( lk_iomput .AND. knt == nrdttrc ) THEN 
    188          CALL iom_put( "AtmCo2" , satmco2(:,:) * tmask(:,:,1) )   ! Atmospheric CO2 concentration 
    189          !  
    190188         ALLOCATE( zw2d(jpi,jpj) )   
    191189         IF( iom_use( "Cflx"  ) )  THEN 
    192             zw2d(:,:) = oce_co2(:,:) * 1000.  ! conversion in molC/m2/s 
     190            zw2d(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r 
    193191            CALL iom_put( "Cflx"     , zw2d )  
    194192         ENDIF 
    195193         IF( iom_use( "Oflx"  ) )  THEN 
    196             zw2d(:,:) =  zoflx(:,:) * 1000. 
     194            zw2d(:,:) =  zoflx(:,:) * 1000 * tmask(:,:,1) 
    197195            CALL iom_put( "Oflx" , zw2d ) 
    198196         ENDIF 
     
    205203           CALL iom_put( "Dpco2" ,  zw2d ) 
    206204         ENDIF 
    207          IF( iom_use( "pCO2sea" ) ) THEN 
    208            zw2d(:,:) = ( zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1) 
    209            CALL iom_put( "pCO2sea" ,  zw2d ) 
    210          ENDIF 
    211  
    212205         IF( iom_use( "Dpo2" ) )  THEN 
    213206           zw2d(:,:) = ( atcox * patm(:,:) - atcox * trb(:,:,1,jpoxy) / ( chemo2(:,:,1) + rtrn ) ) * tmask(:,:,1) 
    214207           CALL iom_put( "Dpo2"  , zw2d ) 
    215208         ENDIF 
    216          CALL iom_put( "tcflx"    , t_oce_co2_flx     )   ! molC/s 
    217          CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum )   ! molC 
     209         CALL iom_put( "tcflx"    , t_oce_co2_flx * rfact2r )   ! molC/s 
     210         CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum       )   ! molC 
    218211         ! 
    219212         DEALLOCATE( zw2d ) 
Note: See TracChangeset for help on using the changeset viewer.