25 |
#include "SIZE.h" |
#include "SIZE.h" |
26 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
27 |
#include "CG2D.h" |
#include "CG2D.h" |
28 |
|
#include "PARAMS.h" |
29 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
30 |
|
|
31 |
C == Routine arguments == |
C == Routine arguments == |
82 |
_RL rhokp1(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL rhokp1(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
83 |
_RL pSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL pSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
84 |
_RL pSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL pSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
85 |
|
_RL K13 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nz) |
86 |
|
_RL K23 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nz) |
87 |
|
_RL K33 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nz) |
88 |
|
_RL KapGM (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
89 |
INTEGER iMin, iMax |
INTEGER iMin, iMax |
90 |
INTEGER jMin, jMax |
INTEGER jMin, jMax |
91 |
INTEGER bi, bj |
INTEGER bi, bj |
112 |
fMer(i,j) = 0. _d 0 |
fMer(i,j) = 0. _d 0 |
113 |
DO K=1,nZ |
DO K=1,nZ |
114 |
pH (i,j,k) = 0. _d 0 |
pH (i,j,k) = 0. _d 0 |
115 |
|
K13(i,j,k) = 0. _d 0 |
116 |
|
K23(i,j,k) = 0. _d 0 |
117 |
|
K33(i,j,k) = 0. _d 0 |
118 |
ENDDO |
ENDDO |
119 |
rhokm1(i,j) = 0. _d 0 |
rhokm1(i,j) = 0. _d 0 |
120 |
rhokp1(i,j) = 0. _d 0 |
rhokp1(i,j) = 0. _d 0 |
142 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |
143 |
DO i=1-OLx,sNx+OLx |
DO i=1-OLx,sNx+OLx |
144 |
pH(i,j,1) = 0. _d 0 |
pH(i,j,1) = 0. _d 0 |
145 |
|
K13(i,j,1) = 0. _d 0 |
146 |
|
K23(i,j,1) = 0. _d 0 |
147 |
|
K33(i,j,1) = 0. _d 0 |
148 |
|
KapGM(i,j) = 0. _d 0 |
149 |
ENDDO |
ENDDO |
150 |
ENDDO |
ENDDO |
151 |
|
|
189 |
I bi, bj, iMin, iMax, jMin, jMax, K, K, 'LINEAR', |
I bi, bj, iMin, iMax, jMin, jMax, K, K, 'LINEAR', |
190 |
O rhoKp1, |
O rhoKp1, |
191 |
I myThid ) |
I myThid ) |
192 |
|
C-- Calculate iso-neutral slopes for the GM/Redi parameterisation |
193 |
|
CALL CALC_ISOSLOPES( |
194 |
|
I bi, bj, iMin, iMax, jMin, jMax, K, |
195 |
|
I rhoKm1, rhoKp1, |
196 |
|
O K13, K23, K33, KapGM, |
197 |
|
I myThid ) |
198 |
C-- Calculate static stability and mix where convectively unstable |
C-- Calculate static stability and mix where convectively unstable |
199 |
CALL CONVECT( |
CALL CONVECT( |
200 |
I bi,bj,iMin,iMax,jMin,jMax,K,rhoKm1,rhoKp1,myThid) |
I bi,bj,iMin,iMax,jMin,jMax,K,rhoKm1,rhoKp1,myThid) |
244 |
CALL CALC_GT( |
CALL CALC_GT( |
245 |
I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
246 |
I xA,yA,uTrans,vTrans,wTrans,maskUp, |
I xA,yA,uTrans,vTrans,wTrans,maskUp, |
247 |
|
I K13,K23,K33,KapGM, |
248 |
U aTerm,xTerm,fZon,fMer,fVerT, |
U aTerm,xTerm,fZon,fMer,fVerT, |
249 |
I myThid) |
I myThid) |
250 |
Cdbg CALL CALC_GS( |
Cdbg CALL CALC_GS( |
251 |
Cdbg I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
Cdbg I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
252 |
Cdbg I xA,yA,uTrans,vTrans,wTrans,maskUp, |
Cdbg I xA,yA,uTrans,vTrans,wTrans,maskUp, |
253 |
|
Cdbg I K13,K23,K33,KapGM, |
254 |
Cdbg U aTerm,xTerm,fZon,fMer,fVerS, |
Cdbg U aTerm,xTerm,fZon,fMer,fVerS, |
255 |
Cdbg I myThid) |
Cdbg I myThid) |
256 |
|
|
259 |
ENDDO |
ENDDO |
260 |
ENDDO |
ENDDO |
261 |
|
|
262 |
|
!dbg write(0,*) 'dynamics: pS',minval(cg2d_x),maxval(cg2d_x) |
263 |
|
!dbg write(0,*) 'dynamics: U',minval(uVel(1:sNx,1:sNy,:,:,:)), |
264 |
|
!dbg & maxval(uVel(1:sNx,1:sNy,:,:,:)) |
265 |
|
!dbg write(0,*) 'dynamics: V',minval(vVel(1:sNx,1:sNy,:,:,:)), |
266 |
|
!dbg & maxval(vVel(1:sNx,1:sNy,:,:,:)) |
267 |
|
!dbg write(0,*) 'dynamics: gT',minval(gT(1:sNx,1:sNy,:,:,:)), |
268 |
|
!dbg & maxval(gT(1:sNx,1:sNy,:,:,:)) |
269 |
|
!dbg write(0,*) 'dynamics: T',minval(Theta(1:sNx,1:sNy,:,:,:)), |
270 |
|
!dbg & maxval(Theta(1:sNx,1:sNy,:,:,:)) |
271 |
|
!dbg write(0,*) 'dynamics: pH',minval(pH/(Gravity*Rhonil)), |
272 |
|
!dbg & maxval(pH/(Gravity*Rhonil)) |
273 |
|
|
274 |
RETURN |
RETURN |
275 |
END |
END |