/[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.2 - (hide 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 adcroft 1.2 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 adcroft 1.1
4     #include "CPP_OPTIONS.h"
5    
6 adcroft 1.2 SUBROUTINE TIMESTEP_TRACER(
7     I bi, bj, iMin, iMax, jMin, jMax, K, tauAB,
8     U tracer, gTracer, gTrNm1,
9     I myIter, myThid )
10 adcroft 1.1 C /==========================================================\
11     C | S/R TIMESTEP_TRACER |
12     C | o Step model tracer field forward in time |
13     C \==========================================================/
14 adcroft 1.2 IMPLICIT NONE
15    
16     C == Global variables ===
17 adcroft 1.1 #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "PARAMS.h"
20 adcroft 1.2
21 adcroft 1.1 C == Routine Arguments ==
22 adcroft 1.2 C tauAB - Adams-Bashforth timestepping weight: 0=forward ; 1/2=Adams-Bashf.
23 adcroft 1.1 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
24 adcroft 1.2 _RL tauAB
25 adcroft 1.1 _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 adcroft 1.2 ab15 = 1.+ tauAB
35     ab05 = -tauAB
36 adcroft 1.1
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