/[MITgcm]/MITgcm/model/src/dynamics.F
ViewVC logotype

Diff of /MITgcm/model/src/dynamics.F

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

revision 1.14 by cnh, Mon Jun 8 21:43:01 1998 UTC revision 1.18 by adcroft, Wed Jun 10 16:05:39 1998 UTC
# Line 95  C                          into fVerTerm Line 95  C                          into fVerTerm
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
# Line 174  C     uninitialised but inert locations. Line 175  C     uninitialised but inert locations.
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    
# Line 227  C--     Integrate hydrostatic balance fo Line 229  C--     Integrate hydrostatic balance fo
229       I      bi,bj,iMin,iMax,jMin,jMax,1,rhoKm1,rhoKm1,       I      bi,bj,iMin,iMax,jMin,jMax,1,rhoKm1,rhoKm1,
230       U      pH,       U      pH,
231       I      myThid )       I      myThid )
232          DO J=1-Oly,sNy+Oly          DO J=jMin,jMax
233           DO I=1-Olx,sNx+Olx           DO I=iMin,iMax
234            rhoKp1(I,J)=rhoKm1(I,J)            rhoKp1(I,J)=rhoKm1(I,J)
235           ENDDO           ENDDO
236          ENDDO          ENDDO
# Line 243  copt I     bi, bj, iMin, iMax, jMin, jMa Line 245  copt I     bi, bj, iMin, iMax, jMin, jMa
245  copt O     rhoKm1,  copt O     rhoKm1,
246  copt I     myThid )  copt I     myThid )
247  C       rhoKm1=rhoKp1  C       rhoKm1=rhoKp1
248          DO J=1-Oly,sNy+Oly          DO J=jMin,jMax
249           DO I=1-Olx,sNx+Olx           DO I=iMin,iMax
250            rhoKm1(I,J)=rhoKp1(I,J)            rhoKm1(I,J)=rhoKp1(I,J)
251           ENDDO           ENDDO
252          ENDDO          ENDDO
# Line 312  C--      Calculate the total vertical di Line 314  C--      Calculate the total vertical di
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
# Line 335  C--      Calculate active tracer tendenc Line 337  C--      Calculate active tracer tendenc
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(
# Line 358  C--      Diagnose barotropic divergence Line 362  C--      Diagnose barotropic divergence
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        write(0,*) 'dynamics: pS',minval(cg2d_x),maxval(cg2d_x)        write(0,*) 'dynamics: pS ',minval(cg2d_x(1:sNx,1:sNy,:,:)),
373        write(0,*) 'dynamics: U',minval(uVel(1:sNx,1:sNy,:,:,:)),       &                           maxval(cg2d_x(1:sNx,1:sNy,:,:))
374       &                         maxval(uVel(1:sNx,1:sNy,:,:,:))        write(0,*) 'dynamics: U  ',minval(uVel(1:sNx,1:sNy,:,:,:)),
375        write(0,*) 'dynamics: V',minval(vVel(1:sNx,1:sNy,:,:,:)),       &                           maxval(uVel(1:sNx,1:sNy,:,:,:))
376       &                         maxval(vVel(1:sNx,1:sNy,:,:,:))        write(0,*) 'dynamics: V  ',minval(vVel(1:sNx,1:sNy,:,:,:)),
377        write(0,*) 'dynamics: K13',minval(K13(1:sNx,1:sNy,:)),       &                           maxval(vVel(1:sNx,1:sNy,:,:,:))
378       &                         maxval(K13(1:sNx,1:sNy,:))  cblk  write(0,*) 'dynamics: K13',minval(K13(1:sNx,1:sNy,:)),
379        write(0,*) 'dynamics: K23',minval(K23(1:sNx,1:sNy,:)),  cblk &                           maxval(K13(1:sNx,1:sNy,:))
380       &                         maxval(K23(1:sNx,1:sNy,:))  cblk  write(0,*) 'dynamics: K23',minval(K23(1:sNx,1:sNy,:)),
381        write(0,*) 'dynamics: K33',minval(K33(1:sNx,1:sNy,:)),  cblk &                           maxval(K23(1:sNx,1:sNy,:))
382       &                         maxval(K33(1:sNx,1:sNy,:))  cblk  write(0,*) 'dynamics: K33',minval(K33(1:sNx,1:sNy,:)),
383        write(0,*) 'dynamics: gT',minval(gT(1:sNx,1:sNy,:,:,:)),  cblk &                           maxval(K33(1:sNx,1:sNy,:))
384       &                         maxval(gT(1:sNx,1:sNy,:,:,:))        write(0,*) 'dynamics: gT ',minval(gT(1:sNx,1:sNy,:,:,:)),
385        write(0,*) 'dynamics: T',minval(Theta(1:sNx,1:sNy,:,:,:)),       &                           maxval(gT(1:sNx,1:sNy,:,:,:))
386       &                         maxval(Theta(1:sNx,1:sNy,:,:,:))        write(0,*) 'dynamics: T  ',minval(Theta(1:sNx,1:sNy,:,:,:)),
387        write(0,*) 'dynamics: pH',minval(pH/(Gravity*Rhonil)),       &                           maxval(Theta(1:sNx,1:sNy,:,:,:))
388       &                          maxval(pH/(Gravity*Rhonil))        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)),
393    cblk &                           maxval(pH/(Gravity*Rhonil))
394    
395        RETURN        RETURN
396        END        END

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.22