/[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.2 - (show annotations) (download)
Tue May 29 14:01:37 2001 UTC (23 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre1, checkpoint40pre2, checkpoint40pre4
Changes since 1.1: +14 -15 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/timestep_tracer.F,v 1.1.2.1 2001/04/09 16:08:35 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE TIMESTEP_TRACER(
7 I bi, bj, iMin, iMax, jMin, jMax, K, tauAB,
8 U tracer, gTracer, gTrNm1,
9 I myIter, myThid )
10 C /==========================================================\
11 C | S/R TIMESTEP_TRACER |
12 C | o Step model tracer field forward in time |
13 C \==========================================================/
14 IMPLICIT NONE
15
16 C == Global variables ===
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19 #include "PARAMS.h"
20
21 C == Routine Arguments ==
22 C tauAB - Adams-Bashforth timestepping weight: 0=forward ; 1/2=Adams-Bashf.
23 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
24 _RL tauAB
25 _RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
26 _RL gTracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
27 _RL gTrNm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
28 INTEGER myIter, myThid
29 C == Local variables ==
30 INTEGER i,j
31 _RL ab15,ab05
32
33 C Adams-Bashforth timestepping weights
34 ab15 = 1.+ tauAB
35 ab05 = -tauAB
36
37 C Step forward temperature
38 DO j=jMin,jMax
39 DO i=iMin,iMax
40 gTrNm1(i,j,k,bi,bj)=tracer(i,j,k,bi,bj)
41 & +deltaTtracer*(
42 & ab15*gTracer(i,j,k,bi,bj)
43 & +ab05*gTrNm1(i,j,k,bi,bj) )
44 ENDDO
45 ENDDO
46
47 RETURN
48 END

  ViewVC Help
Powered by ViewVC 1.1.22