/[MITgcm]/MITgcm/pkg/cfc/cfc11_surfforcing.F
ViewVC logotype

Annotation of /MITgcm/pkg/cfc/cfc11_surfforcing.F

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


Revision 1.4 - (hide annotations) (download)
Mon Jun 10 02:56:57 2013 UTC (11 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.3: +66 -58 lines
change argument list:
- pass atmospheric CFC fields as argument and return air-sea CFC flux (instead
  of surface tendency).
- put arguments in standard order: myTime, myIter, myThid
notes: file "cfc11_surfforcing.F" is derived from cfc12_surfforcing.F using
 the sed commands:
> s/CFC12/CFC11/g
> s/cfc12/cfc11/g
> s/_12/_11/g

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/pkg/cfc/cfc11_surfforcing.F,v 1.3 2006/08/06 01:29:12 jmc Exp $
2 jmc 1.3 C $Name: $
3    
4 stephd 1.1 #include "GCHEM_OPTIONS.h"
5    
6 jmc 1.4 CBOP
7     C !ROUTINE: CFC11_SURFFORCING
8     C !INTERFACE:
9     SUBROUTINE CFC11_SURFFORCING(
10     I pTr_CFC11, AtmosCFC11,
11     O fluxCFC11,
12     I bi, bj, iMin, iMax, jMin, jMax,
13     I myTime, myIter, myThid )
14    
15     C !DESCRIPTION:
16     C *==========================================================*
17     C | SUBROUTINE CFC11_SURFFORCING
18     C | o Calculate the CFC11 air-sea fluxes
19     C *==========================================================*
20    
21     C !USES:
22 stephd 1.1 IMPLICIT NONE
23    
24     C == GLobal variables ==
25     #include "SIZE.h"
26     #include "EEPARAMS.h"
27     #include "PARAMS.h"
28     #include "GRID.h"
29 jmc 1.3 #include "DYNVARS.h"
30 stephd 1.1 #include "CFC.h"
31    
32 jmc 1.4 C !INPUT/OUTPUT PARAMETERS:
33     C pTr_CFC11 :: ocean CFC11 concentration
34     C AtmosCFC11 :: atmospheric CFC11 field
35     C fluxCFC11 :: air-sea CFC11 fluxes
36     C bi, bj :: current tile indices
37     C iMin,iMax :: computation domain, 1rst index bounds
38     C jMin,jMax :: computation domain, 2nd index bounds
39     C myTime :: current time in simulation
40     C myIter :: current iteration number
41     C myThid :: my Thread Id number
42     _RL pTr_CFC11 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
43     _RL AtmosCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44     _RL fluxCFC11 (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
45     INTEGER bi, bj
46     INTEGER iMin, iMax, jMin, jMax
47     _RL myTime
48 stephd 1.1 INTEGER myIter, myThid
49 jmc 1.4 CEOP
50 stephd 1.1
51     #ifdef ALLOW_PTRACERS
52     #ifdef ALLOW_CFC
53    
54 jmc 1.4 C !LOCAL VARIABLES:
55     C i, j, k - Loop counters
56     INTEGER i,j,k
57 stephd 1.1 C Solubility relation coefficients
58     _RL SchmidtNocfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
59     _RL SolCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
60 jmc 1.3 c _RL cfc11sat(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
61 stephd 1.1 _RL Kwexch(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
62     _RL Csat(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
63     _RL ttemp, ttemp2
64    
65 jmc 1.4 k=1
66 stephd 1.1
67     C calculate SCHMIDT NO. for O2
68     DO j=jMin,jMax
69 jmc 1.4 DO i=iMin,iMax
70     IF ( maskC(i,j,k,bi,bj).NE.zeroRS ) THEN
71 stephd 1.1 C calculate SCHMIDT NO. for CFC11
72 jmc 1.4 SchmidtNocfc11(i,j) =
73     & sca_11_1
74 stephd 1.1 & + sca_11_2 * theta(i,j,k,bi,bj)
75 jmc 1.4 & + sca_11_3 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj)
76     & + sca_11_4 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj)
77 stephd 1.1 & *theta(i,j,k,bi,bj)
78     c calculate solubility for CFC11
79 jmc 1.4 ttemp=( theta(i,j,k,bi,bj) + 273.16 _d 0)* 0.01 _d 0
80     ttemp2=( B3_11 * ttemp + B2_11 )*ttemp + B1_11
81     SolCFC11(i,j) =
82     & EXP ( A1_11
83 stephd 1.1 & + A2_11 / ttemp
84     & + A3_11 * log( ttemp )
85     & + A4_11 * ttemp * ttemp
86     & + Salt(i,j,k,bi,bj)* ttemp2 )
87     c conversion from mol/(l * atm) to mol/(m^3 * atm)
88 jmc 1.4 SolCFC11(i,j) = 1000. _d 0 * SolCFC11(i,j)
89 stephd 1.1 c conversion from mol/(m^3 * atm) to mol/(m3 * pptv)
90 jmc 1.4 SolCFC11(i,j) = 1. _d -12 * SolCFC11(i,j)
91 stephd 1.1 C Determine surface flux (Fcfc11)
92 jmc 1.4 Csat(i,j) = SolCFC11(i,j)*AtmosP(i,j,bi,bj)
93     & *AtmosCFC11(i,j)
94     Kwexch(i,j) = (1. _d 0 - fIce(i,j,bi,bj))
95     & * pisVel(i,j,bi,bj)
96     & / SQRT(SchmidtNoCFC11(i,j)/660. _d 0)
97     fluxCFC11(i,j) =
98     & Kwexch(i,j)*(Csat(i,j) - pTr_CFC11(i,j,1))
99    
100     ELSE
101     fluxCFC11(i,j) = 0. _d 0
102     ENDIF
103 stephd 1.1
104 jmc 1.4 ENDDO
105 stephd 1.1 ENDDO
106    
107 jmc 1.4 #endif /* ALLOW_CFC */
108     #endif /* ALLOW_PTRACERS */
109 stephd 1.1
110 jmc 1.4 RETURN
111     END

  ViewVC Help
Powered by ViewVC 1.1.22