/[MITgcm]/MITgcm/pkg/ebm/ebm_atmosphere.F
ViewVC logotype

Diff of /MITgcm/pkg/ebm/ebm_atmosphere.F

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

revision 1.6 by jmc, Tue Apr 28 18:11:51 2009 UTC revision 1.7 by jmc, Thu Aug 6 13:52:52 2009 UTC
# Line 58  C--   Top layer only Line 58  C--   Top layer only
58  cph      TOP_LAYER = k .EQ. 1  cph      TOP_LAYER = k .EQ. 1
59    
60  cph      IF ( TOP_LAYER ) THEN  cph      IF ( TOP_LAYER ) THEN
61          
62        DO bj=myByLo(myThid),myByHi(myThid)        DO bj=myByLo(myThid),myByHi(myThid)
63         DO bi=myBxLo(myThid),myBxHi(myThid)         DO bi=myBxLo(myThid),myBxHi(myThid)
64    
# Line 118  c     degree  to second  Legendre polyno Line 118  c     degree  to second  Legendre polyno
118  c=======================================================  c=======================================================
119          T_var(1) = SIN(lat(2)*deg2rad) - SIN(lat(1)*deg2rad)          T_var(1) = SIN(lat(2)*deg2rad) - SIN(lat(1)*deg2rad)
120          T_var(2) = SIN(lat(3)*deg2rad) - SIN(lat(2)*deg2rad)          T_var(2) = SIN(lat(3)*deg2rad) - SIN(lat(2)*deg2rad)
121          T_var(3) = SIN(lat(2)*deg2rad)**3. - SIN(lat(1)*deg2rad)**3.          T_var(3) = SIN(lat(2)*deg2rad)**3 - SIN(lat(1)*deg2rad)**3
122          T_var(4) = SIN(lat(3)*deg2rad)**3. - SIN(lat(2)*deg2rad)**3.          T_var(4) = SIN(lat(3)*deg2rad)**3 - SIN(lat(2)*deg2rad)**3
123  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
124  CADJ STORE T_var(:) = comlev1_bibj, key=iebmkey, byte=isbyte  CADJ STORE T_var(:) = comlev1_bibj, key=iebmkey, byte=isbyte
125  #endif  #endif
# Line 128  c--------------------------------------- Line 128  c---------------------------------------
128  c     Southern hemisphere:  c     Southern hemisphere:
129  c----------------------------------------  c----------------------------------------
130          T2(1) =  2.*(TtS - TmlS)*T_var(1)*T_var(2)/          T2(1) =  2.*(TtS - TmlS)*T_var(1)*T_var(2)/
131       <     (T_var(3)*T_var(2) - T_var(4)*T_var(1))       &     (T_var(3)*T_var(2) - T_var(4)*T_var(1))
132          T0(1) = TtS - 0.5*T2(1)*((T_var(3)/T_var(1)) - 1.)          T0(1) = TtS - 0.5*T2(1)*((T_var(3)/T_var(1)) - 1.)
133  c----------------------------------------  c----------------------------------------
134  c       Northern hemisphere  c       Northern hemisphere
135  c----------------------------------------  c----------------------------------------
136          T2(2) =  2.*(TtN - TmlN)*T_var(1)*T_var(2)/          T2(2) =  2.*(TtN - TmlN)*T_var(1)*T_var(2)/
137       <     (T_var(3)*T_var(2) - T_var(4)*T_var(1))       &     (T_var(3)*T_var(2) - T_var(4)*T_var(1))
138          T0(2) = TtN - 0.5*T2(2)*((T_var(3)/T_var(1)) - 1.)          T0(2) = TtN - 0.5*T2(2)*((T_var(3)/T_var(1)) - 1.)
139  c-----------------------------------------  c-----------------------------------------
140  c     Temperature  at 35 N/S  c     Temperature  at 35 N/S
141  c-----------------------------------------  c-----------------------------------------
142          DO no_so = 1,2          DO no_so = 1,2
143           T35(no_so)= T0(no_so) +           T35(no_so)= T0(no_so) +
144       <        T2(no_so)*0.5*       &        T2(no_so)*0.5*
145       <        ((3.*SIN(lat(2)*deg2rad)**2. - 1.))       &        ( 3.*SIN(lat(2)*deg2rad)**2 - 1. )
146          ENDDO          ENDDO
147  c-----------------------------------------  c-----------------------------------------
148  c     Temperature gradient at 35 N/S  c     Temperature gradient at 35 N/S
149  c-----------------------------------------  c-----------------------------------------
150          DO no_so = 1, 2          DO no_so = 1, 2
151           DTDy35(no_so) = 3.*T2(no_so)*           DTDy35(no_so) = 3.*T2(no_so)*
152       <        SIN(lat(2)*deg2rad)/rSphere       &        SIN(lat(2)*deg2rad)/rSphere
153          ENDDO          ENDDO
154  c-----------------------------------------------------------  c-----------------------------------------------------------
155  c     Magnitude of the heat and moisture transport at 35 N/S  c     Magnitude of the heat and moisture transport at 35 N/S
# Line 163  CADJ STORE DTDy35(:) = comlev1_bibj, key Line 163  CADJ STORE DTDy35(:) = comlev1_bibj, key
163          DO no_so = 1, 2          DO no_so = 1, 2
164           IF ( DTDy35(no_so).NE.0. .AND. T35(no_so).NE.0. ) THEN           IF ( DTDy35(no_so).NE.0. .AND. T35(no_so).NE.0. ) THEN
165            gamma = -T35(no_so)*beta*Hw*Nw*Nw/            gamma = -T35(no_so)*beta*Hw*Nw*Nw/
166       <        (gravity*f0*DTDy35(no_so))       &        (gravity*f0*DTDy35(no_so))
167            kappa = Hw/(1 + gamma)            kappa = Hw/(1. _d 0 + gamma)
168            De = Hw/(0.48 + 1.48*gamma)            De = Hw/(0.48 _d 0 + 1.48 _d 0 *gamma)
169            C = 0.6*gravity*kappa*kappa*Nw/            C = 0.6 _d 0 *gravity*kappa*kappa*Nw/
170       <        (Tw*f0*f0)       &        (Tw*f0*f0)
171            Cs = rho_air*cp*C*            Cs = rho_air*cp*C*
172       <        (1/(1/Hw+1/De) - 1/(1/Hw+1/De+1/dz))       &        ( 1. _d 0 /(1. _d 0 /Hw + 1. _d 0 /De)
173            Cf = htil*2.97e12*C/(T35(no_so)**3)*(       &         -1. _d 0 /(1. _d 0 /Hw+1. _d 0 /De+1. _d 0 /dz) )
174       <        1/(1/De + (5420*tau /(T35(no_so)**2)))            Cf = htil*2.97 _d 12*C/(T35(no_so)**3)*(
175       <        - 1/(1/De+5420*tau/(T35(no_so)**2)+1/dz))       &        1. _d 0/(1. _d 0/De + (5420. _d 0*tau /(T35(no_so)**2)))
176         &        -1. _d 0/(1. _d 0/De+5420. _d 0*tau/(T35(no_so)**2)
177         &        +1. _d 0/dz))
178            Cl = Cf*lv            Cl = Cf*lv
179            Hd35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)            Hd35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)
180       <        *(Cs + Cl*exp(-5420./T35(no_so)))       &        *(Cs + Cl*exp(-5420./T35(no_so)))
181       <        *(abs(DTDy35(no_so))**trans_eff)       &        *(abs(DTDy35(no_so))**trans_eff)
182            Fw35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)            Fw35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)
183       <        *(abs(DTDy35(no_so))**trans_eff)       &        *(abs(DTDy35(no_so))**trans_eff)
184       <        *Cf*exp(-5420./T35(no_so))       &        *Cf*exp(-5420./T35(no_so))
185           ELSE           ELSE
186            Hd35(no_so) = 0.            Hd35(no_so) = 0.
187            Fw35(no_so) = 0.            Fw35(no_so) = 0.
# Line 192  c Line 194  c
194  #ifdef EBM_VERSION_1BASIN  #ifdef EBM_VERSION_1BASIN
195  c      Fw35(2) = 0.7*Fw35(2)  c      Fw35(2) = 0.7*Fw35(2)
196  #else  #else
197          Hd35(2) = 1.6*Hd35(2)          Hd35(2) = 1.6 _d 0*Hd35(2)
198  #endif  #endif
199  c======================================================  c======================================================
200  c     Calculation of latitudinal profiles  c     Calculation of latitudinal profiles
201  c======================================================  c======================================================
202  c    c
203          DO j=1,sNy          DO j=1,sNy
204           DO i=1,sNx           DO i=1,sNx
205  C     sin(lat)  C     sin(lat)
206            S(i,j,bj) = sin(yC(i,j,bi,bj)*deg2rad)            S(i,j,bj) = sin(yC(i,j,bi,bj)*deg2rad)
207  C     setup Legendre polynomials and  derivatives  C     setup Legendre polynomials and  derivatives
208            P2(i,j,bj) = 0.5*(3.*S(i,j,bj)**2 - 1.)            P2(i,j,bj) = 0.5*(3.*S(i,j,bj)**2 - 1.)
209            P4(i,j,bj) = 0.12*(35.*S(i,j,bj)**4 - 30.*S(i,j,bj)**2 + 3.)            P4(i,j,bj) = 0.12 _d 0 *
210         &                (35.*S(i,j,bj)**4 - 30.*S(i,j,bj)**2 + 3.)
211           ENDDO           ENDDO
212          ENDDO          ENDDO
213  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
# Line 212  CADJ STORE S(:,:,bj)    = comlev1_bibj, Line 215  CADJ STORE S(:,:,bj)    = comlev1_bibj,
215  CADJ STORE P2(:,:,bj)   = comlev1_bibj, key=iebmkey, byte=isbyte  CADJ STORE P2(:,:,bj)   = comlev1_bibj, key=iebmkey, byte=isbyte
216  CADJ STORE P4(:,:,bj)   = comlev1_bibj, key=iebmkey, byte=isbyte  CADJ STORE P4(:,:,bj)   = comlev1_bibj, key=iebmkey, byte=isbyte
217  #endif  #endif
218  c    c
219          DO j=1,sNy          DO j=1,sNy
220           DO i=1,sNx           DO i=1,sNx
221    
# Line 222  c Line 225  c
225               no_so = 2               no_so = 2
226            ENDIF            ENDIF
227  c     net shortwave  c     net shortwave
228            SW(j,bj) = 0.25*Q0*(1 + Q2*P2(i,j,bj))*            SW(j,bj) = 0.25 _d 0 *Q0*(1. _d 0 + Q2*P2(i,j,bj))*
229       <         (1 - A0 - A2*P2(i,j,bj) - A4*P4(i,j,bj) )       &         (1. _d 0 - A0 - A2*P2(i,j,bj) - A4*P4(i,j,bj) )
230  c     temperature  c     temperature
231            T(j,bj) = T0(no_so) + T2(no_so)*P2(i,j,bj)            T(j,bj) = T0(no_so) + T2(no_so)*P2(i,j,bj)
232  c     net longwave  c     net longwave
233            LW(j,bj) = LW0 + LW1*(T(j,bj)-t_mlt)            LW(j,bj) = LW0 + LW1*(T(j,bj)-t_mlt)
234  c     climate change run, the parameter to change is DLW  c     climate change run, the parameter to change is DLW
235  #ifdef EBM_CLIMATE_CHANGE  #ifdef EBM_CLIMATE_CHANGE
236               LW(j,bj) = LW(j,bj) -               LW(j,bj) = LW(j,bj) -
237       <            (myTime-startTime)*3.215e-8*DLW       &            (myTime-startTime)*3.215 _d -8*DLW
238  c     <            - 6.0  c     <            - 6.0
239  c     <            *75.0*0.0474*  c     <            *75.0*0.0474*
240  c     <            (-2.62*S(i,j,bj)**8 + 0.73*S(i,j,bj)**7 +  c     <            (-2.62*S(i,j,bj)**8 + 0.73*S(i,j,bj)**7 +
241  c     <            4.82*S(i,j,bj)**6 -  c     <            4.82*S(i,j,bj)**6 -
242  c     <            1.12*S(i,j,bj)**5 - 2.69*S(i,j,bj)**4 + 0.47*S(i,j,bj)**3 +  c     <            1.12*S(i,j,bj)**5 - 2.69*S(i,j,bj)**4 + 0.47*S(i,j,bj)**3 +
243  c     <            0.51*S(i,j,bj)**2 - 0.05*S(i,j,bj)**1 + 0.17)  c     <            0.51*S(i,j,bj)**2 - 0.05*S(i,j,bj)**1 + 0.17)
244  #endif  #endif
245  c     fluxes at ocean/atmosphere interface  c     fluxes at ocean/atmosphere interface
246  c     Heat Flux = -Div(atmospheric heat transport) + SW - LW  c     Heat Flux = -Div(atmospheric heat transport) + SW - LW
247  #ifdef EBM_VERSION_1BASIN  #ifdef EBM_VERSION_1BASIN
248           Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) -           Qnet(i,j,bi,bj) = -1.0 _d 0 *( SW(j,bj) - LW(j,bj) -
249       <        Hd35(no_so)*(       &        Hd35(no_so)*(
250       <        0.000728e4      - 0.00678e4*S(i,j,bj) +       &        0.000728 _d 4      - 0.00678 _d 4*S(i,j,bj) +
251       <        0.0955e4*S(i,j,bj)**2 + 0.0769e4*S(i,j,bj)**3 -       &        0.0955 _d 4*S(i,j,bj)**2 + 0.0769 _d 4*S(i,j,bj)**3 -
252       <        0.8508e4*S(i,j,bj)**4 - 0.3581e4*S(i,j,bj)**5 +       &        0.8508 _d 4*S(i,j,bj)**4 - 0.3581 _d 4*S(i,j,bj)**5 +
253       <        2.9240e4*S(i,j,bj)**6 + 0.8311e4*S(i,j,bj)**7 -         &        2.9240 _d 4*S(i,j,bj)**6 + 0.8311 _d 4*S(i,j,bj)**7 -
254       <        4.9548e4*S(i,j,bj)**8 - 0.8808e4*S(i,j,bj)**9 +       &        4.9548 _d 4*S(i,j,bj)**8 - 0.8808 _d 4*S(i,j,bj)**9 +
255       <        4.0644e4*S(i,j,bj)**10 +0.3409e4*S(i,j,bj)**11 -       &        4.0644 _d 4*S(i,j,bj)**10 +0.3409 _d 4*S(i,j,bj)**11 -
256       <        1.2893e4*S(i,j,bj)**12 )       &        1.2893 _d 4*S(i,j,bj)**12 )
257       <        /(2*PI*rSphere*rSphere*25.0) )       &        /(2.*PI*rSphere*rSphere*25.) )
258  c             Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) -  c             Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) -
259  c     <            0.5*Hd35(no_so)*(3.054e1 - 3.763e1*S(i,j,bj) +  c     <            0.5*Hd35(no_so)*(3.054e1 - 3.763e1*S(i,j,bj) +
260  c     <        1.892e2*S(i,j,bj)**2 + 3.041e2*S(i,j,bj)**3 -  c     <        1.892e2*S(i,j,bj)**2 + 3.041e2*S(i,j,bj)**3 -
261  c     <        1.540e3*S(i,j,bj)**4 - 9.586e2*S(i,j,bj)**5 +  c     <        1.540e3*S(i,j,bj)**4 - 9.586e2*S(i,j,bj)**5 +
262  c     <        2.939e3*S(i,j,bj)**6 + 1.219e3*S(i,j,bj)**7 -    c     <        2.939e3*S(i,j,bj)**6 + 1.219e3*S(i,j,bj)**7 -
263  c     <        2.550e3*S(i,j,bj)**8 - 5.396e2*S(i,j,bj)**9 +  c     <        2.550e3*S(i,j,bj)**8 - 5.396e2*S(i,j,bj)**9 +
264  c     <        8.119e2*S(i,j,bj)**10)  c     <        8.119e2*S(i,j,bj)**10)
265  c     <            /(2*PI*rSphere*rSphere*22.3) )  c     <            /(2*PI*rSphere*rSphere*22.3) )
266  #else  #else
267            IF (ReCountX(j,bj) .GT. 0.) THEN            IF (ReCountX(j,bj) .GT. 0.) THEN
268               Qnet(i,j,bi,bj) = (-90./ReCountX(j,bj))*               Qnet(i,j,bi,bj) = (-90. _d 0 /ReCountX(j,bj))*
269       <            ( SW(j,bj) - LW(j,bj) -       &            ( SW(j,bj) - LW(j,bj) -
270       <            Hd35(no_so)*(3.054e1 - 3.763e1*S(i,j,bj) +       &            Hd35(no_so)*(3.054 _d 1 - 3.763 _d 1*S(i,j,bj) +
271       <        1.892e2*S(i,j,bj)**2 + 3.041e2*S(i,j,bj)**3 -       &        1.892 _d 2*S(i,j,bj)**2 + 3.041 _d 2*S(i,j,bj)**3 -
272       <        1.540e3*S(i,j,bj)**4 - 9.586e2*S(i,j,bj)**5 +       &        1.540 _d 3*S(i,j,bj)**4 - 9.586 _d 2*S(i,j,bj)**5 +
273       <        2.939e3*S(i,j,bj)**6 + 1.219e3*S(i,j,bj)**7 -         &        2.939 _d 3*S(i,j,bj)**6 + 1.219 _d 3*S(i,j,bj)**7 -
274       <        2.550e3*S(i,j,bj)**8 - 5.396e2*S(i,j,bj)**9 +       &        2.550 _d 3*S(i,j,bj)**8 - 5.396 _d 2*S(i,j,bj)**9 +
275       <        8.119e2*S(i,j,bj)**10)       &        8.119 _d 2*S(i,j,bj)**10)
276       <            /(2*PI*rSphere*rSphere*22.3) )       &            /(2.*PI*rSphere*rSphere*22.3 _d 0) )
277            ELSE            ELSE
278               Qnet(i,j,bi,bj) = 0.               Qnet(i,j,bi,bj) = 0.
279            ENDIF            ENDIF
# Line 278  c     <            /(2*PI*rSphere*rSpher Line 281  c     <            /(2*PI*rSphere*rSpher
281  c     Freshwater Flux = Div(atmospheric moisture transport)  c     Freshwater Flux = Div(atmospheric moisture transport)
282  c---  conversion of E-P from kg/(s m^2) -> m/s -> psu/s: 1e-3*35/delZ(1)  c---  conversion of E-P from kg/(s m^2) -> m/s -> psu/s: 1e-3*35/delZ(1)
283  #ifdef EBM_VERSION_1BASIN  #ifdef EBM_VERSION_1BASIN
284            EmPmR(i,j,bi,bj) = -1.e-3*Fw35(no_so)            EmPmR(i,j,bi,bj) = -1. _d -3*Fw35(no_so)
285       <    *(-0.8454e5*S(i,j,bj)**14 + 0.5367e5*S(i,j,bj)**13       &    *(-0.8454 _d 5*S(i,j,bj)**14 + 0.5367 _d 5*S(i,j,bj)**13
286       <    +3.3173e5*S(i,j,bj)**12 - 1.8965e5*S(i,j,bj)**11       &    +3.3173 _d 5*S(i,j,bj)**12 - 1.8965 _d 5*S(i,j,bj)**11
287       <    -5.1701e5*S(i,j,bj)**10       &    -5.1701 _d 5*S(i,j,bj)**10
288       <    +2.6240e5*S(i,j,bj)**9 + 4.077e5*S(i,j,bj)**8       &    +2.6240 _d 5*S(i,j,bj)**9 + 4.077 _d 5*S(i,j,bj)**8
289       <    -1.791e5*S(i,j,bj)**7       &    -1.791 _d 5*S(i,j,bj)**7
290       <    -1.7231e5*S(i,j,bj)**6 + 0.6229e5*S(i,j,bj)**5       &    -1.7231 _d 5*S(i,j,bj)**6 + 0.6229 _d 5*S(i,j,bj)**5
291       <    +0.3824e5*S(i,j,bj)**4       &    +0.3824 _d 5*S(i,j,bj)**4
292       <    -0.1017e5*S(i,j,bj)**3 - 0.0387e5*S(i,j,bj)**2       &    -0.1017 _d 5*S(i,j,bj)**3 - 0.0387 _d 5*S(i,j,bj)**2
293       <    +0.00562e5*S(i,j,bj)  + 0.0007743e5)       &    +0.00562 _d 5*S(i,j,bj)  + 0.0007743 _d 5)
294       <    /(2.0*12.0*PI*rSphere*rSphere)       &    /(2.0*12.0*PI*rSphere*rSphere)
295  c             EmPmR(i,j,bi,bj) = 1.e-3*Fw35(no_so)  c             EmPmR(i,j,bi,bj) = 1.e-3*Fw35(no_so)
296  c     <            *(50.0 + 228.0*S(i,j,bj) -1.593e3*S(i,j,bj)**2  c     <            *(50.0 + 228.0*S(i,j,bj) -1.593e3*S(i,j,bj)**2
297  c     <            - 2.127e3*S(i,j,bj)**3 + 7.3e3*S(i,j,bj)**4  c     <            - 2.127e3*S(i,j,bj)**3 + 7.3e3*S(i,j,bj)**4
298  c     <            + 5.799e3*S(i,j,bj)**5 - 1.232e4*S(i,j,bj)**6  c     <            + 5.799e3*S(i,j,bj)**5 - 1.232e4*S(i,j,bj)**6
299  c     <            - 6.389e3*S(i,j,bj)**7 + 9.123e3*S(i,j,bj)**8  c     <            - 6.389e3*S(i,j,bj)**7 + 9.123e3*S(i,j,bj)**8
300  c     <            + 2.495e3*S(i,j,bj)**9 - 2.567e3*S(i,j,bj)**10)  c     <            + 2.495e3*S(i,j,bj)**9 - 2.567e3*S(i,j,bj)**10)
301  c     <            /(2*PI*rSphere*rSphere*15.0)  c     <            /(2*PI*rSphere*rSphere*15.0)
302  #else  #else
303            IF (yC(i,j,bi,bj) .LT. -40.) THEN            IF (yC(i,j,bi,bj) .LT. -40.) THEN
304  c--   Southern Hemisphere  c--   Southern Hemisphere
305             EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)*             EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so)*
306       <            (-6.5 + 35.3 + 71.7*S(i,j,bj)         &            (-6.5 _d 0 + 35.3 _d 0 + 71.7 _d 0*S(i,j,bj)
307       <           - 1336.3*S(i,j,bj)**2 - 425.8*S(i,j,bj)**3       &           - 1336.3 _d 0*S(i,j,bj)**2 - 425.8 _d 0*S(i,j,bj)**3
308       <           + 5434.8*S(i,j,bj)**4 + 707.9*S(i,j,bj)**5       &           + 5434.8 _d 0*S(i,j,bj)**4 + 707.9 _d 0*S(i,j,bj)**5
309       <           - 6987.7*S(i,j,bj)**6 - 360.4*S(i,j,bj)**7       &           - 6987.7 _d 0*S(i,j,bj)**6 - 360.4 _d 0*S(i,j,bj)**7
310       <           + 2855.0*S(i,j,bj)**8)       &           + 2855.0 _d 0*S(i,j,bj)**8)
311       <            /(2*PI*rSphere*rSphere*18.0))       &            /(2.*PI*rSphere*rSphere*18.0))
312            ELSE            ELSE
313  c--   Atlantic  c--   Atlantic
314             IF (xC(i,j,bi,bj) .GT. 284.             IF (xC(i,j,bi,bj) .GT. 284.
315       <      .OR. xC(i,j,bi,bj) .LT. 28.) THEN       &      .OR. xC(i,j,bi,bj) .LT. 28.) THEN
316                EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)*                EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so)*
317       <             (-6.5 -2.878 + 3.157e2*S(i,j,bj) -       &             (-6.5 _d 0 -2.878 _d 0 + 3.157 _d 2*S(i,j,bj) -
318       <             2.388e3*S(i,j,bj)**2 - 4.101e3*S(i,j,bj)**3 +       &             2.388 _d 3*S(i,j,bj)**2 - 4.101 _d 3*S(i,j,bj)**3 +
319       <             1.963e4*S(i,j,bj)**4 + 1.534e4*S(i,j,bj)**5 -       &             1.963 _d 4*S(i,j,bj)**4 + 1.534 _d 4*S(i,j,bj)**5 -
320       <             6.556e4*S(i,j,bj)**6 - 2.478e4*S(i,j,bj)**7 +       &             6.556 _d 4*S(i,j,bj)**6 - 2.478 _d 4*S(i,j,bj)**7 +
321       <             1.083e5*S(i,j,bj)**8 + 1.85e4*S(i,j,bj)**9 -       &             1.083 _d 5*S(i,j,bj)**8 + 1.85 _d 4*S(i,j,bj)**9 -
322       <             8.703e4*S(i,j,bj)**10 - 5.276e3*S(i,j,bj)**11 +       &             8.703 _d 4*S(i,j,bj)**10 - 5.276 _d 3*S(i,j,bj)**11 +
323       <             2.703e4*S(i,j,bj)**12)       &             2.703 _d 4*S(i,j,bj)**12)
324       <             /(2*PI*rSphere*rSphere*12.0))       &             /(2.*PI*rSphere*rSphere*12.0))
325             ELSE             ELSE
326  c--   Pacific  c--   Pacific
327                EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)                EmPmR(i,j,bi,bj) = -1. _d -3*(Fw35(no_so)
328       <             *(-6.5 +51.89 + 4.916e2*S(i,j,bj) -       &             *(-6.5 _d 0 +51.89 _d 0 + 4.916 _d 2*S(i,j,bj) -
329       <             1.041e3*S(i,j,bj)**2 - 7.546e3*S(i,j,bj)**3 +       &             1.041 _d 3*S(i,j,bj)**2 - 7.546 _d 3*S(i,j,bj)**3 +
330       <             2.335e3*S(i,j,bj)**4 + 3.449e4*S(i,j,bj)**5 +       &             2.335 _d 3*S(i,j,bj)**4 + 3.449 _d 4*S(i,j,bj)**5 +
331       <             6.702e3*S(i,j,bj)**6 - 6.601e4*S(i,j,bj)**7 -       &             6.702 _d 3*S(i,j,bj)**6 - 6.601 _d 4*S(i,j,bj)**7 -
332       <             2.594e4*S(i,j,bj)**8 + 5.652e4*S(i,j,bj)**9 +       &             2.594 _d 4*S(i,j,bj)**8 + 5.652 _d 4*S(i,j,bj)**9 +
333       <             2.738e4*S(i,j,bj)**10 - 1.795e4*S(i,j,bj)**11 -       &             2.738 _d 4*S(i,j,bj)**10 - 1.795 _d 4*S(i,j,bj)**11 -
334       <             9.486e3*S(i,j,bj)**12)       &             9.486 _d 3*S(i,j,bj)**12)
335       <             /(2*PI*rSphere*rSphere*12.0))       &             /(2.*PI*rSphere*rSphere*12.0))
336             ENDIF             ENDIF
337            ENDIF            ENDIF
338  #endif  #endif
# Line 341  c--   Pacific Line 344  c--   Pacific
344    
345        _EXCH_XY_RS(Qnet , myThid )        _EXCH_XY_RS(Qnet , myThid )
346        _EXCH_XY_RS(EmPmR , myThid )        _EXCH_XY_RS(EmPmR , myThid )
347          
348    
349  C      CALL PLOT_FIELD_XYRS( Qnet, 'Qnet' , 1, myThid )  C      CALL PLOT_FIELD_XYRS( Qnet, 'Qnet' , 1, myThid )
350  C      CALL PLOT_FIELD_XYRS( EmPmR, 'EmPmR' , 1, myThid )  C      CALL PLOT_FIELD_XYRS( EmPmR, 'EmPmR' , 1, myThid )

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22