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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Mar 6 01:42:37 2002 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint46l_post, checkpoint46g_pre, checkpoint46f_post, checkpoint46b_post, checkpoint46l_pre, checkpoint46d_pre, checkpoint45d_post, checkpoint46j_pre, checkpoint44h_pre, checkpoint46a_post, checkpoint46j_post, checkpoint46k_post, checkpoint46b_pre, checkpoint45a_post, checkpoint46e_pre, checkpoint45b_post, checkpoint46c_pre, checkpoint46, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint46i_post, checkpoint46c_post, checkpoint46e_post, checkpoint45, checkpoint46h_post, checkpoint46d_post
 new S/R: add GM-bolus transport to Eulerian transport

1 jmc 1.1 C $Header: $
2     C $Name: $
3    
4     #include "GMREDI_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: GMREDI_CALC_WFLOW
8     C !INTERFACE:
9     SUBROUTINE GMREDI_CALC_WFLOW(
10     U rTrans,
11     I bi, bj, k, myThid)
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | o SUBROUTINE GMREDI_CALC_WFLOW
15     C | Add GM-bolus flow to Eulerian vertical transport
16     C *==========================================================*
17     C \ev
18    
19     C !USES:
20     IMPLICIT NONE
21    
22     C == GLobal variables ==
23     #include "SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26     #include "GRID.h"
27     #include "GMREDI.h"
28    
29     C !INPUT/OUTPUT PARAMETERS:
30     C == Routine arguments ==
31     C bi,bj :: tile indices
32     C k :: level index
33     C myThid :: thread number
34     C rTrans :: vertical volume transport (updated)
35     INTEGER bi, bj, k, myThid
36     _RL rTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37    
38     #ifdef ALLOW_GMREDI
39     #ifdef GM_BOLUS_ADVEC
40    
41     C !LOCAL VARIABLES:
42     C == Local variables ==
43     C i, j :: loop indices
44     INTEGER i, j
45     CEOP
46    
47     IF (GM_AdvForm .AND. .NOT.GM_AdvSeparate) THEN
48    
49     DO j=1-Oly,sNy+Oly-1
50     DO i=1-Olx,sNx+Olx-1
51     rTrans(i,j) = rTrans(i,j)
52     & +( dyG(i+1,j,bi,bj)*GM_PsiX(i+1,j,k,bi,bj)
53     & -dyG( i ,j,bi,bj)*GM_PsiX( i ,j,k,bi,bj)
54     & +dxG(i,j+1,bi,bj)*GM_PsiY(i,j+1,k,bi,bj)
55     & -dxG(i, j ,bi,bj)*GM_PsiY(i, j ,k,bi,bj)
56     & )*maskC(i,j,k,bi,bj)
57     ENDDO
58     ENDDO
59    
60     ENDIF
61     #endif /* GM_BOLUS_ADVEC */
62     #endif /* ALLOW_GMREDI */
63    
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22