204 |
C--- |
C--- |
205 |
CEOP |
CEOP |
206 |
|
|
|
C-- Set up work arrays with valid (i.e. not NaN) values |
|
|
C These inital values do not alter the numerical results. They |
|
|
C just ensure that all memory references are to valid floating |
|
|
C point numbers. This prevents spurious hardware signals due to |
|
|
C uninitialised but inert locations. |
|
|
DO j=1-OLy,sNy+OLy |
|
|
DO i=1-OLx,sNx+OLx |
|
|
phiSurfX(i,j) = 0. _d 0 |
|
|
phiSurfY(i,j) = 0. _d 0 |
|
|
ENDDO |
|
|
ENDDO |
|
|
|
|
207 |
C-- Call to routine for calculation of |
C-- Call to routine for calculation of |
208 |
C Eliassen-Palm-flux-forced U-tendency, |
C Eliassen-Palm-flux-forced U-tendency, |
209 |
C if desired: |
C if desired: |
241 |
& + act4*max1*max2*max3 |
& + act4*max1*max2*max3 |
242 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
243 |
|
|
244 |
C-- Set up work arrays that need valid initial values |
C-- Set up work arrays with valid (i.e. not NaN) values |
245 |
|
C These inital values do not alter the numerical results. They |
246 |
|
C just ensure that all memory references are to valid floating |
247 |
|
C point numbers. This prevents spurious hardware signals due to |
248 |
|
C uninitialised but inert locations. |
249 |
|
|
250 |
DO k=1,Nr |
DO k=1,Nr |
251 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |
252 |
DO i=1-OLx,sNx+OLx |
DO i=1-OLx,sNx+OLx |
253 |
KappaRU(i,j,k) = 0. _d 0 |
KappaRU(i,j,k) = 0. _d 0 |
254 |
KappaRV(i,j,k) = 0. _d 0 |
KappaRV(i,j,k) = 0. _d 0 |
255 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
256 |
|
cph( |
257 |
|
c-- need some re-initialisation here to break dependencies |
258 |
|
c-- totphihyd is assumed zero from ini_pressure, i.e. |
259 |
|
c-- avoiding iterate pressure p = integral of (g*rho(p)*dz) |
260 |
|
cph) |
261 |
|
totPhiHyd(i,j,k,bi,bj) = 0. _d 0 |
262 |
|
gu(i,j,k,bi,bj) = 0. _d 0 |
263 |
|
gv(i,j,k,bi,bj) = 0. _d 0 |
264 |
|
#endif |
265 |
ENDDO |
ENDDO |
266 |
ENDDO |
ENDDO |
267 |
ENDDO |
ENDDO |
275 |
phiHydC (i,j) = 0. _d 0 |
phiHydC (i,j) = 0. _d 0 |
276 |
dPhiHydX(i,j) = 0. _d 0 |
dPhiHydX(i,j) = 0. _d 0 |
277 |
dPhiHydY(i,j) = 0. _d 0 |
dPhiHydY(i,j) = 0. _d 0 |
278 |
|
phiSurfX(i,j) = 0. _d 0 |
279 |
|
phiSurfY(i,j) = 0. _d 0 |
280 |
ENDDO |
ENDDO |
281 |
ENDDO |
ENDDO |
282 |
|
|
403 |
U gU, |
U gU, |
404 |
I myThid ) |
I myThid ) |
405 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
406 |
CADJ STORE gVNm1(:,:,:,bi,bj) = comlev1_bibj , key=idynkey, byte=isbyte |
CADJ STORE gV(:,:,:,bi,bj) = comlev1_bibj , key=idynkey, byte=isbyte |
407 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
408 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
409 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |