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

Contents of /MITgcm/model/src/timestep_tracer.F

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


Revision 1.9 - (show annotations) (download)
Thu Sep 27 20:12:11 2001 UTC (22 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint42
Changes since 1.8: +1 -4 lines
Fixed AD-related problems:
o Store directives up-to-date with re-arranged Adams-Bashforth
  (mainly thermodynamics.F)
o New store directives for multi-dim. advection schemes
  * new CPP flag ALLOW_MULTI_DIM_ADVECTION
  * new common block and key passkey
  (mainly gad_advection.F)
o Modified store directives for split of dynamics/thermodynamics
  for the case ALLOW_KPP
o Cleaned argument list for timestep_tracer.F

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/timestep_tracer.F,v 1.8 2001/09/26 18:09:16 cnh Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: TIMESTEP_TRACER
8 C !INTERFACE:
9 SUBROUTINE TIMESTEP_TRACER(
10 I bi, bj, iMin, iMax, jMin, jMax, K,
11 I advection_scheme,
12 I tracer, gTracer,
13 I myIter, myThid )
14 C !DESCRIPTION: \bv
15 C *==========================================================*
16 C | S/R TIMESTEP_TRACER
17 C | o Step model tracer field forward in time
18 C *==========================================================*
19 C \ev
20
21 C !USES:
22 IMPLICIT NONE
23 C == Global variables ===
24 #include "SIZE.h"
25 #include "EEPARAMS.h"
26 #include "PARAMS.h"
27 #include "GAD.h"
28 #include "GRID.h"
29 #include "SURFACE.h"
30
31 C !INPUT/OUTPUT PARAMETERS:
32 C == Routine Arguments ==
33 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
34 INTEGER advection_scheme
35 _RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
36 _RL gTracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
37 INTEGER myIter, myThid
38
39 C !LOCAL VARIABLES:
40 C == Local variables ==
41 INTEGER i,j
42 _RL ab15,ab05
43 CEOP
44
45 C Adams-Bashforth timestepping weights
46 IF (myIter .EQ. 0) THEN
47 ab15=1.0
48 ab05=0.0
49 ELSE
50 ab15=1.5+abEps
51 ab05=-(0.5+abEps)
52 ENDIF
53
54 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
55
56 C- Step forward tracer
57 DO j=jMin,jMax
58 DO i=iMin,iMax
59 gTracer(i,j,k,bi,bj)=tracer(i,j,k,bi,bj)
60 & +deltaTtracer*gTracer(i,j,k,bi,bj)
61 ENDDO
62 ENDDO
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22