/[MITgcm]/MITgcm/pkg/dic/dic_surfforcing.F
ViewVC logotype

Diff of /MITgcm/pkg/dic/dic_surfforcing.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.11 by stephd, Tue Sep 12 19:58:02 2006 UTC revision 1.14 by dfer, Mon Aug 13 02:29:40 2007 UTC
# Line 9  CBOP Line 9  CBOP
9  C !ROUTINE: DIC_SURFFORCING  C !ROUTINE: DIC_SURFFORCING
10    
11  C !INTERFACE: ==========================================================  C !INTERFACE: ==========================================================
12        SUBROUTINE DIC_SURFFORCING( PTR_CO2 , GDC,        SUBROUTINE DIC_SURFFORCING( PTR_CO2 , PTR_ALK, PTR_PO4, GDC,
13       I           bi,bj,imin,imax,jmin,jmax,       I           bi,bj,imin,imax,jmin,jmax,
14       I           myIter,myTime,myThid)       I           myIter,myTime,myThid)
15    
# Line 26  C !USES: =============================== Line 26  C !USES: ===============================
26  #include "GRID.h"  #include "GRID.h"
27  #include "FFIELDS.h"  #include "FFIELDS.h"
28  #include "DIC_ABIOTIC.h"  #include "DIC_ABIOTIC.h"
 #ifdef DIC_BIOTIC  
 #include "PTRACERS_SIZE.h"  
 #include "PTRACERS.h"  
 #endif  
29    
30  C !INPUT PARAMETERS: ===================================================  C !INPUT PARAMETERS: ===================================================
31  C  myThid               :: thread number  C  myThid               :: thread number
# Line 39  c  PTR_CO2              :: DIC tracer fi Line 35  c  PTR_CO2              :: DIC tracer fi
35        INTEGER myIter, myThid        INTEGER myIter, myThid
36        _RL myTime        _RL myTime
37        _RL  PTR_CO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL  PTR_CO2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
38          _RL  PTR_ALK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
39          _RL  PTR_PO4(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
40        INTEGER iMin,iMax,jMin,jMax, bi, bj        INTEGER iMin,iMax,jMin,jMax, bi, bj
41    
42  C !OUTPUT PARAMETERS: ===================================================  C !OUTPUT PARAMETERS: ===================================================
# Line 65  cccccccccccccccccccccccccccccccccccccccc Line 63  cccccccccccccccccccccccccccccccccccccccc
63    
64        kLev=1        kLev=1
65    
66    c if coupled to atmsopheric model, use the
67    c Co2 value passed from the coupler
68    #ifndef USE_ATMOSCO2
69  C PRE-INDUSTRIAL STEADY STATE pCO2 = 278.0 ppmv  C PRE-INDUSTRIAL STEADY STATE pCO2 = 278.0 ppmv
70         DO j=1-OLy,sNy+OLy         DO j=1-OLy,sNy+OLy
71          DO i=1-OLx,sNx+OLx          DO i=1-OLx,sNx+OLx
72             AtmospCO2(i,j,bi,bj)=278.0d-6             AtmospCO2(i,j,bi,bj)=278.0d-6
73          ENDDO          ENDDO
74         ENDDO         ENDDO
75    #endif
76    
77    
78  C =================================================================  C =================================================================
# Line 80  C determine inorganic carbon chem coeffi Line 82  C determine inorganic carbon chem coeffi
82    
83  #ifdef DIC_BIOTIC  #ifdef DIC_BIOTIC
84  cQQQQ check ptracer numbers  cQQQQ check ptracer numbers
85               surfalk(i,j) = PTRACER(i,j,klev,bi,bj,2)               surfalk(i,j) = PTR_ALK(i,j,klev)
86       &                          * maskC(i,j,kLev,bi,bj)       &                          * maskC(i,j,kLev,bi,bj)
87               surfphos(i,j)  = PTRACER(i,j,klev,bi,bj,3)               surfphos(i,j)  = PTR_PO4(i,j,klev)
88       &                          * maskC(i,j,kLev,bi,bj)       &                          * maskC(i,j,kLev,bi,bj)
89  #else  #else
90               surfalk(i,j) = 2.366595 * salt(i,j,kLev,bi,bj)/gsm_s               surfalk(i,j) = 2.366595 * salt(i,j,kLev,bi,bj)/gsm_s
# Line 134  C calculate SCHMIDT NO. for CO2 Line 136  C calculate SCHMIDT NO. for CO2
136       &          + sca4 * theta(i,j,kLev,bi,bj)*theta(i,j,kLev,bi,bj)       &          + sca4 * theta(i,j,kLev,bi,bj)*theta(i,j,kLev,bi,bj)
137       &                *theta(i,j,kLev,bi,bj)       &                *theta(i,j,kLev,bi,bj)
138    
139    c
140    #ifdef USE_PLOAD
141    C Convert anomalous pressure pLoad (in Pa) from atmospheric model
142    C to total pressure (in Atm)
143    C Note: it is assumed the reference atmospheric pressure is 1Atm=1013mb
144    C       rather than the actual ref. pressure from Atm. model so that on
145    C       average AtmosP is about 1 Atm.
146                   AtmosP(i,j,bi,bj)= 1. _d 0 + pLoad(i,j,bi,bj)/Pa2Atm
147    #endif
148    
149  C Determine surface flux (FDIC)  C Determine surface flux (FDIC)
150  C first correct pCO2at for surface atmos pressure  C first correct pCO2at for surface atmos pressure
151                pCO2sat(i,j) =                pCO2sat(i,j) =

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22