1 |
jmc |
1.10 |
C $Header: /u/gcmpack/MITgcm/pkg/ebm/ebm_atmosphere.F,v 1.9 2011/08/28 21:54:40 jmc Exp $ |
2 |
heimbach |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "EBM_OPTIONS.h" |
5 |
|
|
|
6 |
jmc |
1.9 |
CBOP 0 |
7 |
|
|
C !ROUTINE: EBM_ATMOSPHERE |
8 |
heimbach |
1.1 |
|
9 |
jmc |
1.9 |
C !INTERFACE: |
10 |
|
|
SUBROUTINE EBM_ATMOSPHERE ( myTime, myIter, myThid ) |
11 |
|
|
|
12 |
|
|
C !DESCRIPTION: |
13 |
|
|
C *==========================================================* |
14 |
|
|
C | S/R CALCULATE FORCING FROM ENERGY AND MOISTURE |
15 |
|
|
C | BALANCE ATMOSPHERE |
16 |
|
|
C *==========================================================* |
17 |
heimbach |
1.1 |
C References: |
18 |
|
|
C * X. Wang, P. Stone and J. Marotzke, 1999: |
19 |
|
|
C Global thermohaline circulation. Part I: |
20 |
|
|
C Sensitivity to atmospheric moisture transport. |
21 |
|
|
C J. Climate 12(1), 71-82 |
22 |
|
|
C * X. Wang, P. Stone and J. Marotzke, 1999: |
23 |
|
|
C Global thermohaline circulation. Part II: |
24 |
|
|
C Sensitivity with interactive transport. |
25 |
|
|
C J. Climate 12(1), 83-91 |
26 |
|
|
C * M. Nakamura, P. Stone and J. Marotzke, 1994: |
27 |
|
|
C Destabilization of the thermohaline circulation |
28 |
|
|
C by atmospheric eddy transports. |
29 |
|
|
C J. Climate 7(12), 1870-1882 |
30 |
|
|
|
31 |
jmc |
1.9 |
C !USES: |
32 |
heimbach |
1.1 |
IMPLICIT NONE |
33 |
|
|
C === Global variables === |
34 |
|
|
#include "SIZE.h" |
35 |
|
|
#include "EEPARAMS.h" |
36 |
|
|
#include "PARAMS.h" |
37 |
|
|
#include "FFIELDS.h" |
38 |
|
|
#include "GRID.h" |
39 |
jmc |
1.5 |
#include "EBM.h" |
40 |
heimbach |
1.3 |
#ifdef ALLOW_AUTODIFF_TAMC |
41 |
|
|
# include "tamc.h" |
42 |
|
|
# include "tamc_keys.h" |
43 |
|
|
#endif |
44 |
heimbach |
1.1 |
|
45 |
jmc |
1.9 |
C !INPUT PARAMETERS: |
46 |
heimbach |
1.1 |
C === Routine arguments === |
47 |
jmc |
1.9 |
C myThid :: my Thread Id number |
48 |
|
|
_RL myTime |
49 |
|
|
INTEGER myIter |
50 |
heimbach |
1.1 |
INTEGER myThid |
51 |
jmc |
1.9 |
CEOP |
52 |
heimbach |
1.1 |
|
53 |
|
|
#ifdef ALLOW_EBM |
54 |
jmc |
1.9 |
C !LOCAL VARIABLES: |
55 |
jmc |
1.10 |
INTEGER i, j, bi, bj |
56 |
heimbach |
1.1 |
INTEGER no_so |
57 |
jmc |
1.9 |
#ifdef ALLOW_AUTODIFF_TAMC |
58 |
heimbach |
1.3 |
INTEGER iebmkey |
59 |
jmc |
1.9 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
60 |
jmc |
1.10 |
_RL ReCountX(1-OLy:sNy+OLy,nSy) |
61 |
|
|
|
62 |
|
|
C-- Local arrays used for EBM computation (previously declared in EBM.h) |
63 |
|
|
C- sin(lat) and Legendre polynomials |
64 |
|
|
cph We will make these three (i,j) arrays to |
65 |
|
|
cph avoid AD recomputations |
66 |
|
|
_RL S(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSy) |
67 |
|
|
_RL P2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSy) |
68 |
|
|
_RL P4(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSy) |
69 |
|
|
C- Shortwave and albedo parameters |
70 |
|
|
_RL SW(1-OLy:sNy+OLy,nSy) |
71 |
|
|
C- Longwave parameters |
72 |
|
|
_RL LW(1-OLy:sNy+OLy,nSy) |
73 |
|
|
C- Heat transport parameters |
74 |
|
|
_RL Hd(1-OLy:sNy+OLy,nSy), Hd35(2) |
75 |
|
|
C- Freshwater flux parameters |
76 |
|
|
_RL Fw(1-OLy:sNy+OLy,nSy), Fw35(2) |
77 |
|
|
C- Temperature parameterization |
78 |
|
|
_RL T(1-OLy:sNy+OLy,nSy) |
79 |
|
|
_RL T_var(4), T0(2), T2(2), T35(2), DTDy35(2) |
80 |
|
|
C- Parameters used to calculate the transport efficiency |
81 |
|
|
_RL Cl, Cf, Cs, C |
82 |
|
|
_RL gamma, kappa, De |
83 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
84 |
jmc |
1.7 |
|
85 |
heimbach |
1.1 |
DO bj=myByLo(myThid),myByHi(myThid) |
86 |
|
|
DO bi=myBxLo(myThid),myBxHi(myThid) |
87 |
|
|
|
88 |
heimbach |
1.3 |
#ifdef ALLOW_AUTODIFF_TAMC |
89 |
|
|
act1 = bi - myBxLo(myThid) |
90 |
|
|
max1 = myBxHi(myThid) - myBxLo(myThid) + 1 |
91 |
|
|
act2 = bj - myByLo(myThid) |
92 |
|
|
max2 = myByHi(myThid) - myByLo(myThid) + 1 |
93 |
|
|
act3 = myThid - 1 |
94 |
|
|
max3 = nTx*nTy |
95 |
|
|
act4 = ikey_dynamics - 1 |
96 |
|
|
iebmkey = (act1 + 1) + act2*max1 |
97 |
|
|
& + act3*max1*max2 |
98 |
|
|
& + act4*max1*max2*max3 |
99 |
|
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
100 |
|
|
|
101 |
|
|
DO j=1-oLy,sNy+oLy |
102 |
|
|
DO i=1-oLx,sNx+oLx |
103 |
|
|
S(i,j,bj) = 0.0 |
104 |
|
|
P2(i,j,bj) = 0.0 |
105 |
|
|
P4(i,j,bj) = 0.0 |
106 |
|
|
ENDDO |
107 |
heimbach |
1.2 |
SW(j,bj) = 0.0 |
108 |
|
|
LW(j,bj) = 0.0 |
109 |
|
|
Hd(j,bj) = 0.0 |
110 |
|
|
Fw(j,bj) = 0.0 |
111 |
|
|
T(j,bj) = 0.0 |
112 |
|
|
ReCountX(j,bj) = 0.0 |
113 |
heimbach |
1.1 |
ENDDO |
114 |
|
|
|
115 |
|
|
print *, 'SH', TmlS-t_mlt, TtS-t_mlt |
116 |
|
|
print *, 'NH', TmlN-t_mlt, TtN-t_mlt |
117 |
|
|
|
118 |
|
|
C-- account for ice (can absorb heat on an annual averaged basis) |
119 |
|
|
C-- Greenland in Northern Hemisphere, Antarctica in Southern |
120 |
heimbach |
1.2 |
DO j = 1,sNy |
121 |
|
|
ReCountX(j,bj) = CountX(j,bj) |
122 |
heimbach |
1.1 |
IF (yC(1,j,bi,bj) .LE. -62.0) THEN |
123 |
heimbach |
1.2 |
ReCountX(j,bj) = 90. |
124 |
heimbach |
1.1 |
ELSE IF (yC(1,j,bi,bj) .EQ. 74.0) THEN |
125 |
heimbach |
1.2 |
ReCountX(j,bj) = CountX(j,bj) + 9.0 |
126 |
heimbach |
1.1 |
ELSE IF (yC(1,j,bi,bj) .EQ. 70.0) THEN |
127 |
heimbach |
1.2 |
ReCountX(j,bj) = CountX(j,bj) + 8.0 |
128 |
heimbach |
1.1 |
ELSE IF (yC(1,j,bi,bj) .EQ. 66.0) THEN |
129 |
heimbach |
1.2 |
ReCountX(j,bj) = CountX(j,bj) + 5.0 |
130 |
heimbach |
1.1 |
ELSE IF (yC(1,j,bi,bj) .EQ. 62.0) THEN |
131 |
heimbach |
1.2 |
ReCountX(j,bj) = CountX(j,bj) + 1.0 |
132 |
heimbach |
1.1 |
ENDIF |
133 |
|
|
ENDDO |
134 |
heimbach |
1.3 |
#ifdef ALLOW_AUTODIFF_TAMC |
135 |
|
|
CADJ STORE ReCountX(:,bj) = comlev1_bibj, key=iebmkey, byte=isbyte |
136 |
|
|
#endif |
137 |
heimbach |
1.1 |
|
138 |
|
|
c===================================================== |
139 |
|
|
c Fit area-weighed averaged SST north/south of 34 |
140 |
|
|
c degree to second Legendre polynomial: |
141 |
|
|
c======================================================= |
142 |
jmc |
1.10 |
T_var(1) = SIN(latBnd(2)*deg2rad) - SIN(latBnd(1)*deg2rad) |
143 |
|
|
T_var(2) = SIN(latBnd(3)*deg2rad) - SIN(latBnd(2)*deg2rad) |
144 |
|
|
T_var(3) = SIN(latBnd(2)*deg2rad)**3 - SIN(latBnd(1)*deg2rad)**3 |
145 |
|
|
T_var(4) = SIN(latBnd(3)*deg2rad)**3 - SIN(latBnd(2)*deg2rad)**3 |
146 |
heimbach |
1.3 |
#ifdef ALLOW_AUTODIFF_TAMC |
147 |
|
|
CADJ STORE T_var(:) = comlev1_bibj, key=iebmkey, byte=isbyte |
148 |
|
|
#endif |
149 |
heimbach |
1.1 |
|
150 |
|
|
c---------------------------------------- |
151 |
|
|
c Southern hemisphere: |
152 |
|
|
c---------------------------------------- |
153 |
|
|
T2(1) = 2.*(TtS - TmlS)*T_var(1)*T_var(2)/ |
154 |
jmc |
1.7 |
& (T_var(3)*T_var(2) - T_var(4)*T_var(1)) |
155 |
heimbach |
1.1 |
T0(1) = TtS - 0.5*T2(1)*((T_var(3)/T_var(1)) - 1.) |
156 |
|
|
c---------------------------------------- |
157 |
jmc |
1.8 |
c Northern hemisphere |
158 |
heimbach |
1.1 |
c---------------------------------------- |
159 |
|
|
T2(2) = 2.*(TtN - TmlN)*T_var(1)*T_var(2)/ |
160 |
jmc |
1.7 |
& (T_var(3)*T_var(2) - T_var(4)*T_var(1)) |
161 |
heimbach |
1.1 |
T0(2) = TtN - 0.5*T2(2)*((T_var(3)/T_var(1)) - 1.) |
162 |
|
|
c----------------------------------------- |
163 |
|
|
c Temperature at 35 N/S |
164 |
|
|
c----------------------------------------- |
165 |
|
|
DO no_so = 1,2 |
166 |
jmc |
1.7 |
T35(no_so)= T0(no_so) + |
167 |
|
|
& T2(no_so)*0.5* |
168 |
jmc |
1.10 |
& ( 3.*SIN(latBnd(2)*deg2rad)**2 - 1. ) |
169 |
heimbach |
1.1 |
ENDDO |
170 |
|
|
c----------------------------------------- |
171 |
|
|
c Temperature gradient at 35 N/S |
172 |
|
|
c----------------------------------------- |
173 |
|
|
DO no_so = 1, 2 |
174 |
|
|
DTDy35(no_so) = 3.*T2(no_so)* |
175 |
jmc |
1.10 |
& SIN(latBnd(2)*deg2rad)/rSphere |
176 |
heimbach |
1.1 |
ENDDO |
177 |
|
|
c----------------------------------------------------------- |
178 |
|
|
c Magnitude of the heat and moisture transport at 35 N/S |
179 |
|
|
c----------------------------------------------------------- |
180 |
|
|
|
181 |
heimbach |
1.3 |
#ifdef ALLOW_AUTODIFF_TAMC |
182 |
|
|
CADJ STORE T35(:) = comlev1_bibj, key=iebmkey, byte=isbyte |
183 |
|
|
CADJ STORE DTDy35(:) = comlev1_bibj, key=iebmkey, byte=isbyte |
184 |
|
|
#endif |
185 |
heimbach |
1.1 |
DO no_so = 1, 2 |
186 |
heimbach |
1.4 |
IF ( DTDy35(no_so).NE.0. .AND. T35(no_so).NE.0. ) THEN |
187 |
|
|
gamma = -T35(no_so)*beta*Hw*Nw*Nw/ |
188 |
jmc |
1.7 |
& (gravity*f0*DTDy35(no_so)) |
189 |
|
|
kappa = Hw/(1. _d 0 + gamma) |
190 |
|
|
De = Hw/(0.48 _d 0 + 1.48 _d 0 *gamma) |
191 |
|
|
C = 0.6 _d 0 *gravity*kappa*kappa*Nw/ |
192 |
|
|
& (Tw*f0*f0) |
193 |
heimbach |
1.4 |
Cs = rho_air*cp*C* |
194 |
jmc |
1.7 |
& ( 1. _d 0 /(1. _d 0 /Hw + 1. _d 0 /De) |
195 |
|
|
& -1. _d 0 /(1. _d 0 /Hw+1. _d 0 /De+1. _d 0 /dz) ) |
196 |
|
|
Cf = htil*2.97 _d 12*C/(T35(no_so)**3)*( |
197 |
|
|
& 1. _d 0/(1. _d 0/De + (5420. _d 0*tau /(T35(no_so)**2))) |
198 |
|
|
& -1. _d 0/(1. _d 0/De+5420. _d 0*tau/(T35(no_so)**2) |
199 |
|
|
& +1. _d 0/dz)) |
200 |
heimbach |
1.4 |
Cl = Cf*lv |
201 |
jmc |
1.10 |
Hd35(no_so) = 2.*PI*rSphere*COS(latBnd(2)*deg2rad) |
202 |
jmc |
1.7 |
& *(Cs + Cl*exp(-5420./T35(no_so))) |
203 |
|
|
& *(abs(DTDy35(no_so))**trans_eff) |
204 |
jmc |
1.10 |
Fw35(no_so) = 2.*PI*rSphere*COS(latBnd(2)*deg2rad) |
205 |
jmc |
1.7 |
& *(abs(DTDy35(no_so))**trans_eff) |
206 |
|
|
& *Cf*exp(-5420./T35(no_so)) |
207 |
heimbach |
1.4 |
ELSE |
208 |
|
|
Hd35(no_so) = 0. |
209 |
|
|
Fw35(no_so) = 0. |
210 |
|
|
ENDIF |
211 |
heimbach |
1.1 |
ENDDO |
212 |
heimbach |
1.4 |
c |
213 |
heimbach |
1.1 |
Fw35(1) = 929944128. |
214 |
|
|
Fw35(2) = 678148032. |
215 |
heimbach |
1.4 |
c |
216 |
heimbach |
1.1 |
#ifdef EBM_VERSION_1BASIN |
217 |
|
|
c Fw35(2) = 0.7*Fw35(2) |
218 |
|
|
#else |
219 |
jmc |
1.7 |
Hd35(2) = 1.6 _d 0*Hd35(2) |
220 |
heimbach |
1.1 |
#endif |
221 |
|
|
c====================================================== |
222 |
|
|
c Calculation of latitudinal profiles |
223 |
|
|
c====================================================== |
224 |
jmc |
1.7 |
c |
225 |
heimbach |
1.2 |
DO j=1,sNy |
226 |
|
|
DO i=1,sNx |
227 |
heimbach |
1.3 |
C sin(lat) |
228 |
jmc |
1.10 |
S(i,j,bj) = SIN(yC(i,j,bi,bj)*deg2rad) |
229 |
heimbach |
1.3 |
C setup Legendre polynomials and derivatives |
230 |
|
|
P2(i,j,bj) = 0.5*(3.*S(i,j,bj)**2 - 1.) |
231 |
jmc |
1.7 |
P4(i,j,bj) = 0.12 _d 0 * |
232 |
|
|
& (35.*S(i,j,bj)**4 - 30.*S(i,j,bj)**2 + 3.) |
233 |
heimbach |
1.3 |
ENDDO |
234 |
|
|
ENDDO |
235 |
|
|
#ifdef ALLOW_AUTODIFF_TAMC |
236 |
|
|
CADJ STORE S(:,:,bj) = comlev1_bibj, key=iebmkey, byte=isbyte |
237 |
|
|
CADJ STORE P2(:,:,bj) = comlev1_bibj, key=iebmkey, byte=isbyte |
238 |
|
|
CADJ STORE P4(:,:,bj) = comlev1_bibj, key=iebmkey, byte=isbyte |
239 |
|
|
#endif |
240 |
jmc |
1.7 |
c |
241 |
heimbach |
1.3 |
DO j=1,sNy |
242 |
|
|
DO i=1,sNx |
243 |
heimbach |
1.1 |
|
244 |
|
|
IF (yC(i,j,bi,bj) .LT. 0.) THEN |
245 |
|
|
no_so = 1 |
246 |
|
|
ELSE |
247 |
|
|
no_so = 2 |
248 |
|
|
ENDIF |
249 |
|
|
c net shortwave |
250 |
jmc |
1.7 |
SW(j,bj) = 0.25 _d 0 *Q0*(1. _d 0 + Q2*P2(i,j,bj))* |
251 |
|
|
& (1. _d 0 - A0 - A2*P2(i,j,bj) - A4*P4(i,j,bj) ) |
252 |
heimbach |
1.1 |
c temperature |
253 |
heimbach |
1.3 |
T(j,bj) = T0(no_so) + T2(no_so)*P2(i,j,bj) |
254 |
heimbach |
1.1 |
c net longwave |
255 |
heimbach |
1.2 |
LW(j,bj) = LW0 + LW1*(T(j,bj)-t_mlt) |
256 |
heimbach |
1.1 |
c climate change run, the parameter to change is DLW |
257 |
|
|
#ifdef EBM_CLIMATE_CHANGE |
258 |
jmc |
1.7 |
LW(j,bj) = LW(j,bj) - |
259 |
|
|
& (myTime-startTime)*3.215 _d -8*DLW |
260 |
heimbach |
1.1 |
c < - 6.0 |
261 |
|
|
c < *75.0*0.0474* |
262 |
jmc |
1.7 |
c < (-2.62*S(i,j,bj)**8 + 0.73*S(i,j,bj)**7 + |
263 |
|
|
c < 4.82*S(i,j,bj)**6 - |
264 |
|
|
c < 1.12*S(i,j,bj)**5 - 2.69*S(i,j,bj)**4 + 0.47*S(i,j,bj)**3 + |
265 |
heimbach |
1.3 |
c < 0.51*S(i,j,bj)**2 - 0.05*S(i,j,bj)**1 + 0.17) |
266 |
heimbach |
1.1 |
#endif |
267 |
|
|
c fluxes at ocean/atmosphere interface |
268 |
|
|
c Heat Flux = -Div(atmospheric heat transport) + SW - LW |
269 |
|
|
#ifdef EBM_VERSION_1BASIN |
270 |
jmc |
1.7 |
Qnet(i,j,bi,bj) = -1.0 _d 0 *( SW(j,bj) - LW(j,bj) - |
271 |
|
|
& Hd35(no_so)*( |
272 |
|
|
& 0.000728 _d 4 - 0.00678 _d 4*S(i,j,bj) + |
273 |
|
|
& 0.0955 _d 4*S(i,j,bj)**2 + 0.0769 _d 4*S(i,j,bj)**3 - |
274 |
|
|
& 0.8508 _d 4*S(i,j,bj)**4 - 0.3581 _d 4*S(i,j,bj)**5 + |
275 |
|
|
& 2.9240 _d 4*S(i,j,bj)**6 + 0.8311 _d 4*S(i,j,bj)**7 - |
276 |
|
|
& 4.9548 _d 4*S(i,j,bj)**8 - 0.8808 _d 4*S(i,j,bj)**9 + |
277 |
|
|
& 4.0644 _d 4*S(i,j,bj)**10 +0.3409 _d 4*S(i,j,bj)**11 - |
278 |
|
|
& 1.2893 _d 4*S(i,j,bj)**12 ) |
279 |
|
|
& /(2.*PI*rSphere*rSphere*25.) ) |
280 |
|
|
c Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) - |
281 |
|
|
c < 0.5*Hd35(no_so)*(3.054e1 - 3.763e1*S(i,j,bj) + |
282 |
|
|
c < 1.892e2*S(i,j,bj)**2 + 3.041e2*S(i,j,bj)**3 - |
283 |
|
|
c < 1.540e3*S(i,j,bj)**4 - 9.586e2*S(i,j,bj)**5 + |
284 |
|
|
c < 2.939e3*S(i,j,bj)**6 + 1.219e3*S(i,j,bj)**7 - |
285 |
|
|
c < 2.550e3*S(i,j,bj)**8 - 5.396e2*S(i,j,bj)**9 + |
286 |
heimbach |
1.3 |
c < 8.119e2*S(i,j,bj)**10) |
287 |
heimbach |
1.1 |
c < /(2*PI*rSphere*rSphere*22.3) ) |
288 |
|
|
#else |
289 |
heimbach |
1.2 |
IF (ReCountX(j,bj) .GT. 0.) THEN |
290 |
jmc |
1.7 |
Qnet(i,j,bi,bj) = (-90. _d 0 /ReCountX(j,bj))* |
291 |
|
|
& ( SW(j,bj) - LW(j,bj) - |
292 |
|
|
& Hd35(no_so)*(3.054 _d 1 - 3.763 _d 1*S(i,j,bj) + |
293 |
|
|
& 1.892 _d 2*S(i,j,bj)**2 + 3.041 _d 2*S(i,j,bj)**3 - |
294 |
|
|
& 1.540 _d 3*S(i,j,bj)**4 - 9.586 _d 2*S(i,j,bj)**5 + |
295 |
|
|
& 2.939 _d 3*S(i,j,bj)**6 + 1.219 _d 3*S(i,j,bj)**7 - |
296 |
|
|
& 2.550 _d 3*S(i,j,bj)**8 - 5.396 _d 2*S(i,j,bj)**9 + |
297 |
|
|
& 8.119 _d 2*S(i,j,bj)**10) |
298 |
|
|
& /(2.*PI*rSphere*rSphere*22.3 _d 0) ) |
299 |
heimbach |
1.1 |
ELSE |
300 |
|
|
Qnet(i,j,bi,bj) = 0. |
301 |
|
|
ENDIF |
302 |
|
|
#endif |
303 |
|
|
c Freshwater Flux = Div(atmospheric moisture transport) |
304 |
|
|
c--- conversion of E-P from kg/(s m^2) -> m/s -> psu/s: 1e-3*35/delZ(1) |
305 |
|
|
#ifdef EBM_VERSION_1BASIN |
306 |
jmc |
1.7 |
EmPmR(i,j,bi,bj) = -1. _d -3*Fw35(no_so) |
307 |
|
|
& *(-0.8454 _d 5*S(i,j,bj)**14 + 0.5367 _d 5*S(i,j,bj)**13 |
308 |
|
|
& +3.3173 _d 5*S(i,j,bj)**12 - 1.8965 _d 5*S(i,j,bj)**11 |
309 |
|
|
& -5.1701 _d 5*S(i,j,bj)**10 |
310 |
|
|
& +2.6240 _d 5*S(i,j,bj)**9 + 4.077 _d 5*S(i,j,bj)**8 |
311 |
|
|
& -1.791 _d 5*S(i,j,bj)**7 |
312 |
|
|
& -1.7231 _d 5*S(i,j,bj)**6 + 0.6229 _d 5*S(i,j,bj)**5 |
313 |
|
|
& +0.3824 _d 5*S(i,j,bj)**4 |
314 |
|
|
& -0.1017 _d 5*S(i,j,bj)**3 - 0.0387 _d 5*S(i,j,bj)**2 |
315 |
|
|
& +0.00562 _d 5*S(i,j,bj) + 0.0007743 _d 5) |
316 |
|
|
& /(2.0*12.0*PI*rSphere*rSphere) |
317 |
heimbach |
1.1 |
c EmPmR(i,j,bi,bj) = 1.e-3*Fw35(no_so) |
318 |
jmc |
1.7 |
c < *(50.0 + 228.0*S(i,j,bj) -1.593e3*S(i,j,bj)**2 |
319 |
|
|
c < - 2.127e3*S(i,j,bj)**3 + 7.3e3*S(i,j,bj)**4 |
320 |
|
|
c < + 5.799e3*S(i,j,bj)**5 - 1.232e4*S(i,j,bj)**6 |
321 |
|
|
c < - 6.389e3*S(i,j,bj)**7 + 9.123e3*S(i,j,bj)**8 |
322 |
heimbach |
1.3 |
c < + 2.495e3*S(i,j,bj)**9 - 2.567e3*S(i,j,bj)**10) |
323 |
jmc |
1.7 |
c < /(2*PI*rSphere*rSphere*15.0) |
324 |
heimbach |
1.1 |
#else |
325 |
|
|
IF (yC(i,j,bi,bj) .LT. -40.) THEN |
326 |
|
|
c-- Southern Hemisphere |
327 |
jmc |
1.7 |
EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so)* |
328 |
|
|
& (-6.5 _d 0 + 35.3 _d 0 + 71.7 _d 0*S(i,j,bj) |
329 |
|
|
& - 1336.3 _d 0*S(i,j,bj)**2 - 425.8 _d 0*S(i,j,bj)**3 |
330 |
|
|
& + 5434.8 _d 0*S(i,j,bj)**4 + 707.9 _d 0*S(i,j,bj)**5 |
331 |
|
|
& - 6987.7 _d 0*S(i,j,bj)**6 - 360.4 _d 0*S(i,j,bj)**7 |
332 |
|
|
& + 2855.0 _d 0*S(i,j,bj)**8) |
333 |
|
|
& /(2.*PI*rSphere*rSphere*18.0)) |
334 |
heimbach |
1.1 |
ELSE |
335 |
|
|
c-- Atlantic |
336 |
jmc |
1.7 |
IF (xC(i,j,bi,bj) .GT. 284. |
337 |
|
|
& .OR. xC(i,j,bi,bj) .LT. 28.) THEN |
338 |
|
|
EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so)* |
339 |
|
|
& (-6.5 _d 0 -2.878 _d 0 + 3.157 _d 2*S(i,j,bj) - |
340 |
|
|
& 2.388 _d 3*S(i,j,bj)**2 - 4.101 _d 3*S(i,j,bj)**3 + |
341 |
|
|
& 1.963 _d 4*S(i,j,bj)**4 + 1.534 _d 4*S(i,j,bj)**5 - |
342 |
|
|
& 6.556 _d 4*S(i,j,bj)**6 - 2.478 _d 4*S(i,j,bj)**7 + |
343 |
|
|
& 1.083 _d 5*S(i,j,bj)**8 + 1.85 _d 4*S(i,j,bj)**9 - |
344 |
|
|
& 8.703 _d 4*S(i,j,bj)**10 - 5.276 _d 3*S(i,j,bj)**11 + |
345 |
|
|
& 2.703 _d 4*S(i,j,bj)**12) |
346 |
|
|
& /(2.*PI*rSphere*rSphere*12.0)) |
347 |
heimbach |
1.1 |
ELSE |
348 |
|
|
c-- Pacific |
349 |
jmc |
1.7 |
EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so) |
350 |
|
|
& *(-6.5 _d 0 +51.89 _d 0 + 4.916 _d 2*S(i,j,bj) - |
351 |
|
|
& 1.041 _d 3*S(i,j,bj)**2 - 7.546 _d 3*S(i,j,bj)**3 + |
352 |
|
|
& 2.335 _d 3*S(i,j,bj)**4 + 3.449 _d 4*S(i,j,bj)**5 + |
353 |
|
|
& 6.702 _d 3*S(i,j,bj)**6 - 6.601 _d 4*S(i,j,bj)**7 - |
354 |
|
|
& 2.594 _d 4*S(i,j,bj)**8 + 5.652 _d 4*S(i,j,bj)**9 + |
355 |
|
|
& 2.738 _d 4*S(i,j,bj)**10 - 1.795 _d 4*S(i,j,bj)**11 - |
356 |
|
|
& 9.486 _d 3*S(i,j,bj)**12) |
357 |
|
|
& /(2.*PI*rSphere*rSphere*12.0)) |
358 |
heimbach |
1.1 |
ENDIF |
359 |
|
|
ENDIF |
360 |
|
|
#endif |
361 |
jmc |
1.9 |
EmPmR(i,j,bi,bj) = EmPmR(i,j,bi,bj) |
362 |
|
|
& - Run(i,j,bi,bj)*scale_runoff |
363 |
jmc |
1.5 |
EmPmR(i,j,bi,bj) = EmPmR(i,j,bi,bj)*rhoConstFresh |
364 |
heimbach |
1.1 |
ENDDO |
365 |
|
|
ENDDO |
366 |
|
|
ENDDO |
367 |
|
|
ENDDO |
368 |
heimbach |
1.2 |
|
369 |
jmc |
1.6 |
_EXCH_XY_RS(Qnet , myThid ) |
370 |
|
|
_EXCH_XY_RS(EmPmR , myThid ) |
371 |
jmc |
1.7 |
|
372 |
heimbach |
1.1 |
C CALL PLOT_FIELD_XYRS( Qnet, 'Qnet' , 1, myThid ) |
373 |
|
|
C CALL PLOT_FIELD_XYRS( EmPmR, 'EmPmR' , 1, myThid ) |
374 |
|
|
|
375 |
|
|
#endif /* ALLOW_EBM */ |
376 |
|
|
|
377 |
jmc |
1.5 |
RETURN |
378 |
heimbach |
1.1 |
END |