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

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

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


Revision 1.9 - (hide 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 heimbach 1.9 C $Header: /u/gcmpack/models/MITgcmUV/model/src/timestep_tracer.F,v 1.8 2001/09/26 18:09:16 cnh Exp $
2 adcroft 1.2 C $Name: $
3 adcroft 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.8 CBOP
7     C !ROUTINE: TIMESTEP_TRACER
8     C !INTERFACE:
9 adcroft 1.2 SUBROUTINE TIMESTEP_TRACER(
10 adcroft 1.4 I bi, bj, iMin, iMax, jMin, jMax, K,
11     I advection_scheme,
12     I tracer, gTracer,
13 adcroft 1.2 I myIter, myThid )
14 cnh 1.8 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 adcroft 1.2 IMPLICIT NONE
23     C == Global variables ===
24 adcroft 1.1 #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27 adcroft 1.4 #include "GAD.h"
28 jmc 1.5 #include "GRID.h"
29     #include "SURFACE.h"
30 adcroft 1.2
31 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
32 adcroft 1.1 C == Routine Arguments ==
33     INTEGER bi,bj,iMin,iMax,jMin,jMax,K
34 adcroft 1.4 INTEGER advection_scheme
35 adcroft 1.1 _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 cnh 1.8
39     C !LOCAL VARIABLES:
40 adcroft 1.1 C == Local variables ==
41     INTEGER i,j
42     _RL ab15,ab05
43 cnh 1.8 CEOP
44 adcroft 1.1
45     C Adams-Bashforth timestepping weights
46 adcroft 1.3 IF (myIter .EQ. 0) THEN
47     ab15=1.0
48     ab05=0.0
49     ELSE
50 adcroft 1.4 ab15=1.5+abEps
51     ab05=-(0.5+abEps)
52 adcroft 1.3 ENDIF
53 adcroft 1.1
54 jmc 1.5 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 adcroft 1.7 gTracer(i,j,k,bi,bj)=tracer(i,j,k,bi,bj)
60     & +deltaTtracer*gTracer(i,j,k,bi,bj)
61 jmc 1.5 ENDDO
62     ENDDO
63 adcroft 1.1
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22