--- MITgcm/pkg/dic/dic_surfforcing.F 2006/09/12 19:58:02 1.11 +++ MITgcm/pkg/dic/dic_surfforcing.F 2007/08/13 02:29:40 1.14 @@ -1,4 +1,4 @@ -C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/dic/dic_surfforcing.F,v 1.11 2006/09/12 19:58:02 stephd Exp $ +C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/dic/dic_surfforcing.F,v 1.14 2007/08/13 02:29:40 dfer Exp $ C $Name: $ #include "DIC_OPTIONS.h" @@ -9,7 +9,7 @@ C !ROUTINE: DIC_SURFFORCING C !INTERFACE: ========================================================== - SUBROUTINE DIC_SURFFORCING( PTR_CO2 , GDC, + SUBROUTINE DIC_SURFFORCING( PTR_CO2 , PTR_ALK, PTR_PO4, GDC, I bi,bj,imin,imax,jmin,jmax, I myIter,myTime,myThid) @@ -26,10 +26,6 @@ #include "GRID.h" #include "FFIELDS.h" #include "DIC_ABIOTIC.h" -#ifdef DIC_BIOTIC -#include "PTRACERS_SIZE.h" -#include "PTRACERS.h" -#endif C !INPUT PARAMETERS: =================================================== C myThid :: thread number @@ -39,6 +35,8 @@ INTEGER myIter, myThid _RL myTime _RL PTR_CO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) + _RL PTR_ALK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) + _RL PTR_PO4(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) INTEGER iMin,iMax,jMin,jMax, bi, bj C !OUTPUT PARAMETERS: =================================================== @@ -65,12 +63,16 @@ kLev=1 +c if coupled to atmsopheric model, use the +c Co2 value passed from the coupler +#ifndef USE_ATMOSCO2 C PRE-INDUSTRIAL STEADY STATE pCO2 = 278.0 ppmv DO j=1-OLy,sNy+OLy DO i=1-OLx,sNx+OLx AtmospCO2(i,j,bi,bj)=278.0d-6 ENDDO ENDDO +#endif C ================================================================= @@ -80,9 +82,9 @@ #ifdef DIC_BIOTIC cQQQQ check ptracer numbers - surfalk(i,j) = PTRACER(i,j,klev,bi,bj,2) + surfalk(i,j) = PTR_ALK(i,j,klev) & * maskC(i,j,kLev,bi,bj) - surfphos(i,j) = PTRACER(i,j,klev,bi,bj,3) + surfphos(i,j) = PTR_PO4(i,j,klev) & * maskC(i,j,kLev,bi,bj) #else surfalk(i,j) = 2.366595 * salt(i,j,kLev,bi,bj)/gsm_s @@ -134,6 +136,16 @@ & + sca4 * theta(i,j,kLev,bi,bj)*theta(i,j,kLev,bi,bj) & *theta(i,j,kLev,bi,bj) +c +#ifdef USE_PLOAD +C Convert anomalous pressure pLoad (in Pa) from atmospheric model +C to total pressure (in Atm) +C Note: it is assumed the reference atmospheric pressure is 1Atm=1013mb +C rather than the actual ref. pressure from Atm. model so that on +C average AtmosP is about 1 Atm. + AtmosP(i,j,bi,bj)= 1. _d 0 + pLoad(i,j,bi,bj)/Pa2Atm +#endif + C Determine surface flux (FDIC) C first correct pCO2at for surface atmos pressure pCO2sat(i,j) =