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 15532 for NEMO/branches/2021/dev_r14318_RK3_stage1/src/TOP/PISCES/P4Z/p4zflx.F90 – NEMO

Ignore:
Timestamp:
2021-11-24T12:47:32+01:00 (3 years ago)
Author:
techene
Message:

#2605 #2715 : version in dev (still buggy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/TOP/PISCES/P4Z/p4zflx.F90

    r13295 r15532  
    1010   !!            2.0  !  2007-12  (C. Ethe, G. Madec)  F90 
    1111   !!                 !  2011-02  (J. Simeon, J. Orr) Include total atm P correction  
     12   !!             4.2  !  2020     (J. ORR )  rhop is replaced by "in situ density" rhd 
    1213   !!---------------------------------------------------------------------- 
    1314   !!   p4z_flx       :   CALCULATES GAS EXCHANGE AND CHEMISTRY AT SEA SURFACE 
     
    7879      INTEGER  ::   ji, jj, jm, iind, iindm1 
    7980      REAL(wp) ::   ztc, ztc2, ztc3, ztc4, zws, zkgwan 
    80       REAL(wp) ::   zfld, zflu, zfld16, zflu16, zfact 
     81      REAL(wp) ::   zfld, zflu, zfld16, zflu16, zrhd 
    8182      REAL(wp) ::   zvapsw, zsal, zfco2, zxc2, xCO2approx, ztkel, zfugcoeff 
    8283      REAL(wp) ::   zph, zdic, zsch_o2, zsch_co2 
     
    112113      DO_2D( 1, 1, 1, 1 ) 
    113114         ! DUMMY VARIABLES FOR DIC, H+, AND BORATE 
    114          zfact = rhop(ji,jj,1) / 1000. + rtrn 
     115         zrhd = rhd(ji,jj,1) + 1._wp 
    115116         zdic  = tr(ji,jj,1,jpdic,Kbb) 
    116          zph   = MAX( hi(ji,jj,1), 1.e-10 ) / zfact 
     117         zph   = MAX( hi(ji,jj,1), 1.e-10 ) / ( zrhd + rtrn ) 
    117118         ! CALCULATE [H2CO3] 
    118119         zh2co3(ji,jj) = zdic/(1. + ak13(ji,jj,1)/zph + ak13(ji,jj,1)*ak23(ji,jj,1)/zph**2) 
Note: See TracChangeset for help on using the changeset viewer.