/[MITgcm]/MITgcm/pkg/ptracers/ptracers_advection.F
ViewVC logotype

Contents of /MITgcm/pkg/ptracers/ptracers_advection.F

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


Revision 1.2 - (show annotations) (download)
Sat Jan 3 00:50:29 2004 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube4, hrcube5, checkpoint52j_pre, checkpoint52k_post, checkpoint53, checkpoint52f_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint52e_post, checkpoint53d_post, checkpoint52m_post, checkpoint52h_pre, checkpoint52f_pre, checkpoint53c_post, checkpoint53a_post, checkpoint52i_post, checkpoint53f_post, checkpoint53b_pre, checkpoint52j_post, checkpoint52l_post, checkpoint52n_post, checkpoint53b_post, checkpoint53d_pre
Changes since 1.1: +10 -6 lines
argument list of S/R gad_advection has changed.

1 C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_advection.F,v 1.1 2002/03/04 19:01:29 adcroft Exp $
2 C $Name: $
3
4 #include "PTRACERS_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: PTRACERS_ADVECTION
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE PTRACERS_ADVECTION( bi,bj,myIter,myTime,myThid )
11
12 C !DESCRIPTION:
13 C Calculates tendancy for passive tracers and integrates forward
14 C in time.
15
16 C !USES: ===============================================================
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "DYNVARS.h"
22 #include "PTRACERS.h"
23 #include "GAD.h"
24
25 C !INPUT PARAMETERS: ===================================================
26 C bi,bj :: tile indices
27 C myIter :: time-step number
28 C myTime :: model time
29 C myThid :: thread number
30 INTEGER bi,bj
31 INTEGER myIter
32 _RL myTime
33 INTEGER myThid
34
35 C !OUTPUT PARAMETERS: ==================================================
36 C none
37
38 #ifdef ALLOW_PTRACERS
39
40 C !LOCAL VARIABLES: ====================================================
41 C i,j,k,bi,bj,iTracer :: loop indices
42 C iMin,iMax,jMin,jMax :: loop ranges
43 C kUp,kDown :: toggle indices for even/odd level fluxes
44 C km1 :: =min(1,k-1)
45 C rFlx :: vertical flux
46 INTEGER iTracer
47 CEOP
48
49 C Loop over tracers
50 DO iTracer=1,PTRACERS_numInUse
51
52 IF (
53 c & multiDimAdvection .AND.
54 & PTRACERS_advScheme(iTracer).NE.ENUM_CENTERED_2ND .AND.
55 & PTRACERS_advScheme(iTracer).NE.ENUM_UPWIND_3RD .AND.
56 & PTRACERS_advScheme(iTracer).NE.ENUM_CENTERED_4TH ) THEN
57 CALL GAD_ADVECTION(
58 I .FALSE.,
59 I PTRACERS_advScheme(iTracer),
60 I GAD_TR1,
61 I uVel, vVel, wVel,
62 I pTracer(1-Olx,1-Oly,1,1,1,iTracer),
63 O gPtr(1-Olx,1-Oly,1,1,1,iTracer),
64 I bi,bj,myTime,myIter,myThid)
65 ENDIF
66
67
68 C end of tracer loop
69 ENDDO
70
71 #endif /* ALLOW_PTRACERS */
72
73 RETURN
74 END

  ViewVC Help
Powered by ViewVC 1.1.22