/[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.1 - (show annotations) (download)
Mon Oct 6 20:03:06 2003 UTC (20 years, 7 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint53d_post, checkpoint54a_pre, checkpoint51o_pre, checkpoint55c_post, checkpoint54e_post, checkpoint52e_post, checkpoint51n_pre, checkpoint54a_post, checkpoint53c_post, checkpoint55d_pre, checkpoint57d_post, checkpoint51l_post, checkpoint57g_post, checkpoint51q_post, checkpoint57b_post, checkpoint57c_pre, checkpoint51j_post, checkpoint55j_post, checkpoint56b_post, hrcube_1, checkpoint57e_post, branch-netcdf, checkpoint52d_pre, checkpoint52l_post, checkpoint55h_post, checkpoint51r_post, checkpoint52k_post, checkpoint52b_pre, checkpoint57g_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint54d_post, checkpoint56c_post, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint54f_post, checkpoint53b_post, checkpoint55g_post, checkpoint51o_post, checkpoint51p_post, checkpoint52a_pre, checkpoint55f_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, checkpoint51i_post, checkpoint53, checkpoint52, checkpoint51f_post, checkpoint52d_post, eckpoint57e_pre, checkpoint52a_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, checkpoint57f_post, checkpoint51h_pre, checkpoint51l_pre, ecco_c52_e35, hrcube5, checkpoint57c_post, checkpoint55e_post, checkpoint52i_post, checkpoint52j_pre, checkpoint53f_post, checkpoint55a_post, checkpoint51t_post, checkpoint53d_pre, checkpoint54c_post, checkpoint51n_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51m_post, checkpoint51s_post, checkpoint55d_post
Branch point for: branch-nonh, tg2-branch, checkpoint51n_branch, netcdf-sm0
add CFC's for use with gchem package

1 #include "CPP_OPTIONS.h"
2 #include "GCHEM_OPTIONS.h"
3
4 CStartOfInterFace
5 SUBROUTINE cfc11_SURFFORCING( PTR_cfc11, surfcfc11,
6 I bi,bj,iMin,iMax,jMin,jMax,
7 I myIter, myTime, myThid )
8 C /==========================================================\
9 C | SUBROUTINE CFC11_SURFFORCING |
10 C |==========================================================|
11 IMPLICIT NONE
12
13 C == GLobal variables ==
14 #include "SIZE.h"
15 #include "DYNVARS.h"
16 #include "EEPARAMS.h"
17 #include "PARAMS.h"
18 #include "GRID.h"
19 #include "FFIELDS.h"
20 #include "CFC.h"
21
22 C == Routine arguments ==
23 INTEGER myIter, myThid
24 _RL myTime
25 _RL PTR_cfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
26 _RL surfcfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27 INTEGER iMin,iMax,jMin,jMax, bi, bj
28
29 #ifdef ALLOW_PTRACERS
30 #ifdef ALLOW_CFC
31
32
33 C == Local variables ==
34 C I, J, K - Loop counters
35 INTEGER I,J,K
36 C Solubility relation coefficients
37 _RL SchmidtNocfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 _RL SolCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39 _RL cfc11sat(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40 _RL Kwexch(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41 _RL Fluxcfc11(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42 _RL Csat(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43 _RL ttemp, ttemp2
44
45 K=1
46
47 C calculate SCHMIDT NO. for O2
48 DO j=jMin,jMax
49 DO i=iMin,iMax
50 IF (hFacC(i,j,k,bi,bj).NE.0.) THEN
51 C calculate SCHMIDT NO. for CFC11
52 SchmidtNocfc11(i,j) =
53 & sca_11_1
54 & + sca_11_2 * theta(i,j,k,bi,bj)
55 & + sca_11_3 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj)
56 & + sca_11_4 * theta(i,j,k,bi,bj)*theta(i,j,k,bi,bj)
57 & *theta(i,j,k,bi,bj)
58 c calculate solubility for CFC11
59 ttemp=( theta(i,j,k,bi,bj) + 273.16)* 0.01
60 ttemp2=( B3_11 * ttemp + B2_11 )*
61 & ttemp + B1_11
62 SolCFC11(i,j)
63 & = exp ( A1_11
64 & + A2_11 / ttemp
65 & + A3_11 * log( ttemp )
66 & + A4_11 * ttemp * ttemp
67 & + Salt(i,j,k,bi,bj)* ttemp2 )
68 c conversion from mol/(l * atm) to mol/(m^3 * atm)
69 SolCFC11(i,j) = 1000. * SolCFC11(i,j)
70 c conversion from mol/(m^3 * atm) to mol/(m3 * pptv)
71 SolCFC11(i,j) = 1.0e-12 * SolCFC11(i,j)
72 C Determine surface flux (Fcfc11)
73 Csat(i,j) = SolCFC11(i,j)*AtmosP(i,j,bi,bj)
74 & *AtmosCFC11(i,j,bi,bj)
75 Kwexch(i,j) = pisvel(i,j,bi,bj)
76 & / sqrt(SchmidtNoCFC11(i,j)/660.0)
77 FluxCFC11(i,j) =
78 & Kwexch(i,j)*(Csat(i,j) - PTR_CFC11(i,j,1))
79
80 ELSE
81 FluxCFC11(i,j) = 0.d0
82 ENDIF
83
84
85 ENDDO
86 ENDDO
87
88 C update surface tendencies
89 DO j=jMin,jMax
90 DO i=iMin,iMax
91 SURFCFC11(i,j)=
92 & maskC(i,j,1,bi,bj)*FluxCFC11(i,j)*recip_drF(1)
93 ENDDO
94 ENDDO
95 #endif
96 #endif
97
98
99 RETURN
100 END
101

  ViewVC Help
Powered by ViewVC 1.1.22