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 |
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 |
|
|
369 |
ENDDO |
ENDDO |
370 |
ENDDO |
ENDDO |
371 |
|
|
372 |
C write(0,*) 'dynamics: pS ',minval(cg2d_x(1:sNx,1:sNy,:,:)), |
write(0,*) 'dynamics: pS ',minval(cg2d_x(1:sNx,1:sNy,:,:)), |
373 |
C & maxval(cg2d_x(1:sNx,1:sNy,:,:)) |
& maxval(cg2d_x(1:sNx,1:sNy,:,:)) |
374 |
C write(0,*) 'dynamics: U ',minval(uVel(1:sNx,1:sNy,:,:,:)), |
write(0,*) 'dynamics: U ',minval(uVel(1:sNx,1:sNy,:,:,:)), |
375 |
C & maxval(uVel(1:sNx,1:sNy,:,:,:)) |
& maxval(uVel(1:sNx,1:sNy,:,:,:)) |
376 |
C write(0,*) 'dynamics: V ',minval(vVel(1:sNx,1:sNy,:,:,:)), |
write(0,*) 'dynamics: V ',minval(vVel(1:sNx,1:sNy,:,:,:)), |
377 |
C & maxval(vVel(1:sNx,1:sNy,:,:,:)) |
& maxval(vVel(1:sNx,1:sNy,:,:,:)) |
378 |
cblk write(0,*) 'dynamics: K13',minval(K13(1:sNx,1:sNy,:)), |
cblk write(0,*) 'dynamics: K13',minval(K13(1:sNx,1:sNy,:)), |
379 |
cblk & maxval(K13(1:sNx,1:sNy,:)) |
cblk & maxval(K13(1:sNx,1:sNy,:)) |
380 |
cblk write(0,*) 'dynamics: K23',minval(K23(1:sNx,1:sNy,:)), |
cblk write(0,*) 'dynamics: K23',minval(K23(1:sNx,1:sNy,:)), |
381 |
cblk & maxval(K23(1:sNx,1:sNy,:)) |
cblk & maxval(K23(1:sNx,1:sNy,:)) |
382 |
cblk write(0,*) 'dynamics: K33',minval(K33(1:sNx,1:sNy,:)), |
cblk write(0,*) 'dynamics: K33',minval(K33(1:sNx,1:sNy,:)), |
383 |
cblk & maxval(K33(1:sNx,1:sNy,:)) |
cblk & maxval(K33(1:sNx,1:sNy,:)) |
384 |
C write(0,*) 'dynamics: gT ',minval(gT(1:sNx,1:sNy,:,:,:)), |
write(0,*) 'dynamics: gT ',minval(gT(1:sNx,1:sNy,:,:,:)), |
385 |
C & maxval(gT(1:sNx,1:sNy,:,:,:)) |
& maxval(gT(1:sNx,1:sNy,:,:,:)) |
386 |
C write(0,*) 'dynamics: T ',minval(Theta(1:sNx,1:sNy,:,:,:)), |
write(0,*) 'dynamics: T ',minval(Theta(1:sNx,1:sNy,:,:,:)), |
387 |
C & 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 |
|
|