/[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.8 - (hide annotations) (download)
Wed Sep 26 18:09:16 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint41
Changes since 1.7: +16 -6 lines
Bringing comments up to data and formatting for document extraction.

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

  ViewVC Help
Powered by ViewVC 1.1.22