1 |
#include "CPP_OPTIONS.h" |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "GCHEM_OPTIONS.h" |
#include "GCHEM_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterFace |
CStartOfInterFace |
14 |
|
|
15 |
C == GLobal variables == |
C == GLobal variables == |
16 |
#include "SIZE.h" |
#include "SIZE.h" |
|
#include "DYNVARS.h" |
|
17 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
18 |
#include "PARAMS.h" |
#include "PARAMS.h" |
19 |
#include "GRID.h" |
#include "GRID.h" |
20 |
#include "FFIELDS.h" |
#include "DYNVARS.h" |
21 |
|
c#include "FFIELDS.h" |
22 |
#include "CFC.h" |
#include "CFC.h" |
23 |
|
|
24 |
C == Routine arguments == |
C == Routine arguments == |
38 |
C Solubility relation coefficients |
C Solubility relation coefficients |
39 |
_RL SchmidtNocfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL SchmidtNocfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
40 |
_RL SolCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL SolCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
41 |
_RL cfc11sat(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
c _RL cfc11sat(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
42 |
_RL Kwexch(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL Kwexch(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
43 |
_RL Fluxcfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL Fluxcfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
44 |
_RL Csat(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL Csat(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
49 |
C calculate SCHMIDT NO. for O2 |
C calculate SCHMIDT NO. for O2 |
50 |
DO j=jMin,jMax |
DO j=jMin,jMax |
51 |
DO i=iMin,iMax |
DO i=iMin,iMax |
52 |
IF (hFacC(i,j,k,bi,bj).NE.0.) THEN |
IF (maskC(i,j,k,bi,bj).NE.0.) THEN |
53 |
C calculate SCHMIDT NO. for CFC11 |
C calculate SCHMIDT NO. for CFC11 |
54 |
SchmidtNocfc11(i,j) = |
SchmidtNocfc11(i,j) = |
55 |
& sca_11_1 |
& sca_11_1 |
58 |
& + sca_11_4 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj) |
& + sca_11_4 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj) |
59 |
& *theta(i,j,k,bi,bj) |
& *theta(i,j,k,bi,bj) |
60 |
c calculate solubility for CFC11 |
c calculate solubility for CFC11 |
61 |
ttemp=( theta(i,j,k,bi,bj) + 273.16)* 0.01 |
ttemp=( theta(i,j,k,bi,bj) + 273.16 _d 0)* 0.01 _d 0 |
62 |
ttemp2=( B3_11 * ttemp + B2_11 )* |
ttemp2=( B3_11 * ttemp + B2_11 )* |
63 |
& ttemp + B1_11 |
& ttemp + B1_11 |
64 |
SolCFC11(i,j) |
SolCFC11(i,j) |
68 |
& + A4_11 * ttemp * ttemp |
& + A4_11 * ttemp * ttemp |
69 |
& + Salt(i,j,k,bi,bj)* ttemp2 ) |
& + Salt(i,j,k,bi,bj)* ttemp2 ) |
70 |
c conversion from mol/(l * atm) to mol/(m^3 * atm) |
c conversion from mol/(l * atm) to mol/(m^3 * atm) |
71 |
SolCFC11(i,j) = 1000. * SolCFC11(i,j) |
SolCFC11(i,j) = 1000. _d 0 * SolCFC11(i,j) |
72 |
c conversion from mol/(m^3 * atm) to mol/(m3 * pptv) |
c conversion from mol/(m^3 * atm) to mol/(m3 * pptv) |
73 |
SolCFC11(i,j) = 1.0e-12 * SolCFC11(i,j) |
SolCFC11(i,j) = 1. _d -12 * SolCFC11(i,j) |
74 |
C Determine surface flux (Fcfc11) |
C Determine surface flux (Fcfc11) |
75 |
Csat(i,j) = SolCFC11(i,j)*AtmosP(i,j,bi,bj) |
Csat(i,j) = SolCFC11(i,j)*AtmosP(i,j,bi,bj) |
76 |
& *AtmosCFC11(i,j,bi,bj) |
& *AtmosCFC11(i,j,bi,bj) |
77 |
Kwexch(i,j) = (1.0 - fice(i,j,bi,bj))*pisvel(i,j,bi,bj) |
Kwexch(i,j) = (1. _d 0 - fice(i,j,bi,bj)) |
78 |
& / sqrt(SchmidtNoCFC11(i,j)/660.0) |
& * pisvel(i,j,bi,bj) |
79 |
|
& / sqrt(SchmidtNoCFC11(i,j)/660. _d 0) |
80 |
FluxCFC11(i,j) = |
FluxCFC11(i,j) = |
81 |
& Kwexch(i,j)*(Csat(i,j) - PTR_CFC11(i,j,1)) |
& Kwexch(i,j)*(Csat(i,j) - PTR_CFC11(i,j,1)) |
82 |
|
|
83 |
ELSE |
ELSE |
84 |
FluxCFC11(i,j) = 0.d0 |
FluxCFC11(i,j) = 0. _d 0 |
85 |
ENDIF |
ENDIF |
86 |
|
|
87 |
|
|
101 |
|
|
102 |
RETURN |
RETURN |
103 |
END |
END |
|
|
|