42 |
INTEGER iMin,iMax,jMin,jMax, bi, bj |
INTEGER iMin,iMax,jMin,jMax, bi, bj |
43 |
|
|
44 |
C !OUTPUT PARAMETERS: =================================================== |
C !OUTPUT PARAMETERS: =================================================== |
45 |
c GDC :: tendency term due to air-sea exchange |
c GDC :: tendency due to air-sea exchange |
46 |
_RL GDC(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL GDC(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
47 |
|
|
48 |
#ifdef ALLOW_PTRACERS |
#ifdef ALLOW_PTRACERS |
75 |
|
|
76 |
C ================================================================= |
C ================================================================= |
77 |
C determine inorganic carbon chem coefficients |
C determine inorganic carbon chem coefficients |
78 |
DO j=1-OLy,sNy+OLy |
DO j=jmin,jmax |
79 |
DO i=1-OLx,sNx+OLx |
DO i=imin,imax |
80 |
|
|
81 |
#ifdef DIC_BIOTIC |
#ifdef DIC_BIOTIC |
82 |
cQQQQ check ptracer numbers |
cQQQQ check ptracer numbers |
101 |
|
|
102 |
c pCO2 solver... |
c pCO2 solver... |
103 |
C$TAF LOOP = parallel |
C$TAF LOOP = parallel |
104 |
DO j=1-OLy,sNy+OLy |
DO j=jmin,jmax |
105 |
C$TAF LOOP = parallel |
C$TAF LOOP = parallel |
106 |
DO i=1-OLx,sNx+OLx |
DO i=imin,imax |
107 |
|
|
108 |
IF(maskC(i,j,kLev,bi,bj) .NE. 0.)THEN |
IF(maskC(i,j,kLev,bi,bj) .NE. 0.)THEN |
109 |
CALL CALC_PCO2_APPROX( |
CALL CALC_PCO2_APPROX( |
122 |
ENDDO |
ENDDO |
123 |
ENDDO |
ENDDO |
124 |
|
|
125 |
DO j=1-OLy,sNy+OLy |
DO j=jmin,jmax |
126 |
DO i=1-OLx,sNx+OLx |
DO i=imin,imax |
127 |
|
|
128 |
IF (maskC(i,j,kLev,bi,bj).NE.0.) THEN |
IF (maskC(i,j,kLev,bi,bj).NE.0.) THEN |
129 |
C calculate SCHMIDT NO. for CO2 |
C calculate SCHMIDT NO. for CO2 |
146 |
c OR use a constant coeff |
c OR use a constant coeff |
147 |
c Kwexch(i,j) = 5e-5 |
c Kwexch(i,j) = 5e-5 |
148 |
c ice influence |
c ice influence |
149 |
cQQ Kwexch(i,j) =(1.d0-Fice(i,j,bi,bj))*Kwexch(i,j) |
Kwexch(i,j) =(1.d0-Fice(i,j,bi,bj))*Kwexch(i,j) |
150 |
|
|
151 |
|
|
152 |
C Calculate flux in terms of DIC units using K0, solubility |
C Calculate flux in terms of DIC units using K0, solubility |
172 |
C in salinity. Thus, also increase in other surface tracers |
C in salinity. Thus, also increase in other surface tracers |
173 |
C (i.e. positive virtual flux into surface layer) |
C (i.e. positive virtual flux into surface layer) |
174 |
C ...so here, VirtualFLux = dC/dt! |
C ...so here, VirtualFLux = dC/dt! |
175 |
VirtualFlux(i,j)=gsm_DIC*surfaceTendencyS(i,j,bi,bj)/gsm_s |
VirtualFlux(i,j)=gsm_DIC*surfaceForcingS(i,j,bi,bj)/gsm_s |
176 |
c OR |
c OR |
177 |
c let virtual flux be zero |
c let virtual flux be zero |
178 |
c VirtualFlux(i,j)=0.d0 |
c VirtualFlux(i,j)=0.d0 |
184 |
ENDDO |
ENDDO |
185 |
|
|
186 |
C update tendency |
C update tendency |
187 |
DO j=1-OLy,sNy+OLy |
DO j=jmin,jmax |
188 |
DO i=1-OLx,sNx+OLx |
DO i=imin,imax |
189 |
GDC(i,j)= maskC(i,j,kLev,bi,bj)*( |
GDC(i,j)= maskC(i,j,kLev,bi,bj)*recip_drF(kLev)* |
190 |
& FluxCO2(i,j,bi,bj)*recip_drF(kLev) |
& recip_hFacC(i,j,kLev,bi,bj)*( |
191 |
& + VirtualFlux(i,j) |
& FluxCO2(i,j,bi,bj) + VirtualFlux(i,j) |
192 |
& ) |
& ) |
193 |
ENDDO |
ENDDO |
194 |
ENDDO |
ENDDO |