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

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

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


Revision 1.4 - (show annotations) (download)
Sun Jun 18 23:28:17 2006 UTC (18 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint58t_post, checkpoint58m_post, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint58k_post, checkpoint58v_post, checkpoint58l_post, checkpoint58x_post, checkpoint59j, checkpoint58u_post, checkpoint58s_post
Changes since 1.3: +17 -13 lines
make a local copy of velocity to pass (like u,v,r_Trans) to tracer advection S/R

1 C $Header: /u/gcmpack/MITgcm/pkg/gmredi/gmredi_calc_wflow.F,v 1.3 2004/03/29 03:33:51 edhill Exp $
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 wFld, rTrans,
11 I k, bi, bj, myThid )
12 C !DESCRIPTION:
13 C Add GM-bolus flow to Eulerian vertical transport.
14
15 C !USES:
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 !INPUT/OUTPUT PARAMETERS:
26 C == Routine arguments ==
27 C wFld :: vertical volume transport (updated)
28 C rTrans :: vertical volume transport (updated)
29 C k :: level index
30 C bi,bj :: tile indices
31 C myThid :: thread number
32 _RL wFld (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
33 _RL rTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
34 INTEGER k, bi, bj, myThid
35
36 #ifdef ALLOW_GMREDI
37 #ifdef GM_BOLUS_ADVEC
38
39 C !LOCAL VARIABLES:
40 C == Local variables ==
41 C i, j :: loop indices
42 INTEGER i, j
43 _RL delPsi
44 CEOP
45
46 IF (GM_AdvForm .AND. .NOT.GM_AdvSeparate) THEN
47
48 DO j=1-Oly,sNy+Oly-1
49 DO i=1-Olx,sNx+Olx-1
50 delPsi = ( dyG(i+1,j,bi,bj)*GM_PsiX(i+1,j,k,bi,bj)
51 & -dyG( i ,j,bi,bj)*GM_PsiX( i ,j,k,bi,bj)
52 & +dxG(i,j+1,bi,bj)*GM_PsiY(i,j+1,k,bi,bj)
53 & -dxG(i, j ,bi,bj)*GM_PsiY(i, j ,k,bi,bj)
54 & )*maskC(i,j,k,bi,bj)
55 wFld(i,j) = wFld(i,j) + delPsi*recip_rA(i,j,bi,bj)
56 rTrans(i,j) = rTrans(i,j) + delPsi
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