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

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

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


Revision 1.4 - (show annotations) (download)
Mon Jun 10 02:56:57 2013 UTC (10 years, 11 months 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 C $Header: /u/gcmpack/MITgcm/pkg/cfc/cfc11_surfforcing.F,v 1.3 2006/08/06 01:29:12 jmc Exp $
2 C $Name: $
3
4 #include "GCHEM_OPTIONS.h"
5
6 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 IMPLICIT NONE
23
24 C == GLobal variables ==
25 #include "SIZE.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28 #include "GRID.h"
29 #include "DYNVARS.h"
30 #include "CFC.h"
31
32 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 INTEGER myIter, myThid
49 CEOP
50
51 #ifdef ALLOW_PTRACERS
52 #ifdef ALLOW_CFC
53
54 C !LOCAL VARIABLES:
55 C i, j, k - Loop counters
56 INTEGER i,j,k
57 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 c _RL cfc11sat(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
61 _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 k=1
66
67 C calculate SCHMIDT NO. for O2
68 DO j=jMin,jMax
69 DO i=iMin,iMax
70 IF ( maskC(i,j,k,bi,bj).NE.zeroRS ) THEN
71 C calculate SCHMIDT NO. for CFC11
72 SchmidtNocfc11(i,j) =
73 & sca_11_1
74 & + sca_11_2 * theta(i,j,k,bi,bj)
75 & + 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 & *theta(i,j,k,bi,bj)
78 c calculate solubility for CFC11
79 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 & + 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 SolCFC11(i,j) = 1000. _d 0 * SolCFC11(i,j)
89 c conversion from mol/(m^3 * atm) to mol/(m3 * pptv)
90 SolCFC11(i,j) = 1. _d -12 * SolCFC11(i,j)
91 C Determine surface flux (Fcfc11)
92 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
104 ENDDO
105 ENDDO
106
107 #endif /* ALLOW_CFC */
108 #endif /* ALLOW_PTRACERS */
109
110 RETURN
111 END

  ViewVC Help
Powered by ViewVC 1.1.22