/[MITgcm]/MITgcm/pkg/gmredi/gmredi_xtransport.F
ViewVC logotype

Annotation of /MITgcm/pkg/gmredi/gmredi_xtransport.F

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


Revision 1.2 - (hide annotations) (download)
Mon Nov 13 16:35:28 2000 UTC (23 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: branch-atmos-merge-freeze, branch-atmos-merge-start, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.1: +2 -2 lines
Changes to comply with packaging structure.

1 heimbach 1.2 C $Header: /u/gcmpack/models/MITgcmUV/pkg/gmredi/gmredi_xtransport.F,v 1.1 2000/06/21 19:42:54 adcroft Exp $
2 adcroft 1.1
3     #include "GMREDI_OPTIONS.h"
4    
5     subroutine GMREDI_XTRANSPORT(
6     I iMin,iMax,jMin,jMax,bi,bj,K,
7     I xA,Tracer,
8     U df,
9     I myThid)
10     C /==========================================================\
11     C | o SUBROUTINE GMREDI_XTRANSPORT |
12     C | Add horizontal x transport terms from GM/Redi |
13     C | parameterization. |
14     C |==========================================================|
15     C \==========================================================/
16     IMPLICIT NONE
17    
18     C == GLobal variables ==
19     #include "SIZE.h"
20     #include "EEPARAMS.h"
21     #include "PARAMS.h"
22     #include "GRID.h"
23     #include "GMREDI.h"
24    
25     C == Routine arguments ==
26     C iMin,iMax,jMin, - Range of points for which calculation
27     C jMax,bi,bj,k results will be set.
28     C xA - Area of X face
29     C Tracer - 3D Tracer field
30     C df - Diffusive flux component work array.
31     INTEGER iMin,iMax,jMin,jMax,bi,bj,k
32     _RS xA(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
33     _RL Tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
34     _RL df (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
35     INTEGER myThid
36    
37     #ifdef ALLOW_GMREDI
38    
39     C == Local variables ==
40     C I, J - Loop counters
41     INTEGER I, J
42    
43 heimbach 1.2 IF (useGMRedi) THEN
44 adcroft 1.1
45     C-- Area integrated zonal flux
46     DO j=jMin,jMax
47     DO i=iMin,iMax
48     df(i,j) = df(i,j)
49     & -xA(i,j)
50     & *(GM_background_K
51     #ifdef GM_VISBECK_VARIABLE_K
52     & +0.5*(VisbeckK(i,j,myThid)+VisbeckK(i-1,j,myThid))
53     #endif
54     & )
55     #ifdef GM_NON_UNITY_DIAGONAL
56     & *Kux(i,j,k,myThid)
57     #endif
58     & *_recip_dxC(i,j,bi,bj)
59     & *(Tracer(i,j,k,bi,bj)-Tracer(i-1,j,k,bi,bj))
60     ENDDO
61     ENDDO
62    
63     ENDIF
64     #endif /* ALLOW_GMREDI */
65    
66     RETURN
67     END

  ViewVC Help
Powered by ViewVC 1.1.22