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

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

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

revision 1.22 by heimbach, Mon Sep 11 22:59:08 2000 UTC revision 1.24 by cnh, Sun Feb 4 14:38:45 2001 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2    C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
# Line 7  CStartOfInterFace Line 8  CStartOfInterFace
8       I           bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown,       I           bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown,
9       I           xA,yA,uTrans,vTrans,rTrans,maskup,maskC,       I           xA,yA,uTrans,vTrans,rTrans,maskup,maskC,
10       I           KappaRS,       I           KappaRS,
11       U           af,df,fZon,fMer,fVerS,       U           fVerS,
12       I           myCurrentTime, myThid )       I           myCurrentTime, myThid )
13  C     /==========================================================\  C     /==========================================================\
14  C     | SUBROUTINE CALC_GS                                       |  C     | SUBROUTINE CALC_GS                                       |
# Line 45  C     == GLobal variables == Line 46  C     == GLobal variables ==
46  #include "FFIELDS.h"  #include "FFIELDS.h"
47    
48  C     == Routine arguments ==  C     == Routine arguments ==
 C     fZon    - Work array for flux of temperature in the east-west  
 C               direction at the west face of a cell.  
 C     fMer    - Work array for flux of temperature in the north-south  
 C               direction at the south face of a cell.  
49  C     fVerS   - Flux of salt (S) in the vertical  C     fVerS   - Flux of salt (S) in the vertical
50  C               direction at the upper(U) and lower(D) faces of a cell.  C               direction at the upper(U) and lower(D) faces of a cell.
51  C     maskUp  - Land mask used to denote base of the domain.  C     maskUp  - Land mask used to denote base of the domain.
# Line 58  C     yA      - Tracer cell face area no Line 55  C     yA      - Tracer cell face area no
55  C     uTrans  - Zonal volume transport through cell face  C     uTrans  - Zonal volume transport through cell face
56  C     vTrans  - Meridional volume transport through cell face  C     vTrans  - Meridional volume transport through cell face
57  C     rTrans  - Vertical volume transport through cell face  C     rTrans  - Vertical volume transport through cell face
 C     af      - Advective flux component work array  
 C     df      - Diffusive flux component work array  
58  C     bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation  C     bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation
59  C                                      results will be set.  C                                      results will be set.
60  C     myThid - Instance number for this innvocation of CALC_GT  C     myThid - Instance number for this innvocation of CALC_GT
       _RL fZon  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
       _RL fMer  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
61        _RL fVerS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,2)        _RL fVerS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,2)
62        _RS xA    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RS xA    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
63        _RS yA    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RS yA    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
# Line 74  C     myThid - Instance number for this Line 67  C     myThid - Instance number for this
67        _RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
68        _RS maskC (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RS maskC (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
69        _RL KappaRS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)        _RL KappaRS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
       _RL af    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
       _RL df    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
70        INTEGER k,kUp,kDown,kM1        INTEGER k,kUp,kDown,kM1
71        INTEGER bi,bj,iMin,iMax,jMin,jMax        INTEGER bi,bj,iMin,iMax,jMin,jMax
72        _RL     myCurrentTime        _RL     myCurrentTime
# Line 90  C     I, J, K - Loop counters Line 81  C     I, J, K - Loop counters
81        _RL dSdx(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL dSdx(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
82        _RL dSdy(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL dSdy(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
83        _RL df4   (1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL df4   (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
84          _RL fZon  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
85          _RL fMer  (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
86          _RL af    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
87          _RL df    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
88    
89  #ifdef ALLOW_AUTODIFF_TAMC  #ifdef ALLOW_AUTODIFF_TAMC
90  C--   only the kUp part of fverS is set in this subroutine  C--   only the kUp part of fverS is set in this subroutine
# Line 305  C--   External forcing term(s) Line 300  C--   External forcing term(s)
300       I     maskC,       I     maskC,
301       I     myCurrentTime,myThid)       I     myCurrentTime,myThid)
302    
 #ifdef INCLUDE_LAT_CIRC_FFT_FILTER_CODE  
 C--  
       CALL FILTER_LATCIRCS_FFT_APPLY( gS, 1, sNy, k, k, bi, bj, 1, myThid)  
 #endif  
   
303        RETURN        RETURN
304        END        END

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.22