95 |
_RL K33 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nz) |
_RL K33 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nz) |
96 |
_RL KapGM (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL KapGM (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
97 |
_RL KappaZT(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nz) |
_RL KappaZT(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nz) |
98 |
|
_RL KappaZS(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nz) |
99 |
|
|
100 |
INTEGER iMin, iMax |
INTEGER iMin, iMax |
101 |
INTEGER jMin, jMax |
INTEGER jMin, jMax |
175 |
rhokm1(i,j) = 0. _d 0 |
rhokm1(i,j) = 0. _d 0 |
176 |
rhokp1(i,j) = 0. _d 0 |
rhokp1(i,j) = 0. _d 0 |
177 |
rhotmp(i,j) = 0. _d 0 |
rhotmp(i,j) = 0. _d 0 |
178 |
|
maskC (i,j) = 0. _d 0 |
179 |
ENDDO |
ENDDO |
180 |
ENDDO |
ENDDO |
181 |
|
|
314 |
CALL CALC_DIFFUSIVITY( |
CALL CALC_DIFFUSIVITY( |
315 |
I bi,bj,iMin,iMax,jMin,jMax,K, |
I bi,bj,iMin,iMax,jMin,jMax,K, |
316 |
I maskC,maskUp,KapGM,K33, |
I maskC,maskUp,KapGM,K33, |
317 |
O KappaZT, |
O KappaZT,KappaZS, |
318 |
I myThid) |
I myThid) |
319 |
|
|
320 |
C-- Calculate accelerations in the momentum equations |
C-- Calculate accelerations in the momentum equations |
337 |
U aTerm,xTerm,fZon,fMer,fVerT, |
U aTerm,xTerm,fZon,fMer,fVerT, |
338 |
I myThid) |
I myThid) |
339 |
ENDIF |
ENDIF |
340 |
Cdbg CALL CALC_GS( |
IF ( saltStepping ) THEN |
341 |
Cdbg I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
CALL CALC_GS( |
342 |
Cdbg I xA,yA,uTrans,vTrans,wTrans,maskUp, |
I bi,bj,iMin,iMax,jMin,jMax, k,kM1,kUp,kDown, |
343 |
Cdbg I K13,K23,K33,KapGM, |
I xA,yA,uTrans,vTrans,wTrans,maskUp, |
344 |
Cdbg U aTerm,xTerm,fZon,fMer,fVerS, |
I K13,K23,KappaZS,KapGM, |
345 |
Cdbg I myThid) |
U aTerm,xTerm,fZon,fMer,fVerS, |
346 |
|
I myThid) |
347 |
|
ENDIF |
348 |
|
|
349 |
C-- Prediction step (step forward all model variables) |
C-- Prediction step (step forward all model variables) |
350 |
CALL TIMESTEP( |
CALL TIMESTEP( |
362 |
C-- Implicit diffusion |
C-- Implicit diffusion |
363 |
IF (implicitDiffusion) THEN |
IF (implicitDiffusion) THEN |
364 |
CALL IMPLDIFF( bi, bj, iMin, iMax, jMin, jMax, |
CALL IMPLDIFF( bi, bj, iMin, iMax, jMin, jMax, |
365 |
I KappaZT, |
I KappaZT,KappaZS, |
366 |
I myThid ) |
I myThid ) |
367 |
ENDIF |
ENDIF |
368 |
|
|
385 |
& maxval(gT(1:sNx,1:sNy,:,:,:)) |
& maxval(gT(1:sNx,1:sNy,:,:,:)) |
386 |
write(0,*) 'dynamics: T ',minval(Theta(1:sNx,1:sNy,:,:,:)), |
write(0,*) 'dynamics: T ',minval(Theta(1:sNx,1:sNy,:,:,:)), |
387 |
& maxval(Theta(1:sNx,1:sNy,:,:,:)) |
& maxval(Theta(1:sNx,1:sNy,:,:,:)) |
388 |
|
write(0,*) 'dynamics: gS ',minval(gS(1:sNx,1:sNy,:,:,:)), |
389 |
|
& maxval(gS(1:sNx,1:sNy,:,:,:)) |
390 |
|
write(0,*) 'dynamics: S ',minval(salt(1:sNx,1:sNy,:,:,:)), |
391 |
|
& maxval(salt(1:sNx,1:sNy,:,:,:)) |
392 |
cblk write(0,*) 'dynamics: pH ',minval(pH/(Gravity*Rhonil)), |
cblk write(0,*) 'dynamics: pH ',minval(pH/(Gravity*Rhonil)), |
393 |
cblk & maxval(pH/(Gravity*Rhonil)) |
cblk & maxval(pH/(Gravity*Rhonil)) |
394 |
|
|