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

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

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


Revision 1.3 - (show annotations) (download)
Mon Aug 18 12:24:16 2014 UTC (9 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65c, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.2: +17 -14 lines
change argument list + description

1 C $Header: /u/gcmpack/MITgcm/model/src/cycle_ab_tracer.F,v 1.2 2014/08/14 16:49:19 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: CYCLE_AB_TRACER
8 C !INTERFACE:
9 SUBROUTINE CYCLE_AB_TRACER(
10 I bi, bj,
11 I tracNew,
12 U tracer,
13 O tracNm1,
14 I myTime, myIter, myThid )
15 C !DESCRIPTION: \bv
16 C *==========================================================*
17 C | S/R CYCLE_AB_TRACER
18 C *==========================================================*
19 C | o Cycles the time-stepping arrays for a tracer field
20 C *==========================================================*
21 C \ev
22 C !USES:
23 IMPLICIT NONE
24 C Common
25 #include "SIZE.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C bi, bj :: current tile indices
31 C tracNew :: next time-step tracer field
32 C tracer :: current time-step tracer field
33 C tracNm1 :: previous time-step tracer field
34 C myTime :: Current simulation time
35 C myIter :: Current time-step number
36 C myThid :: my Thread Id number
37 INTEGER bi,bj
38 _RL tracNew(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
39 _RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
40 _RL tracNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
41 _RL myTime
42 INTEGER myIter, myThid
43
44 C !LOCAL VARIABLES:
45 INTEGER i,j,k
46 CEOP
47
48 C Rotate tracNew/tracer/tracNm1
49 DO k=1,Nr
50 DO j=1-OLy,sNy+OLy
51 DO i=1-OLx,sNx+OLx
52 tracNm1(i,j,k) = tracer(i,j,k)
53 tracer(i,j,k) = tracNew(i,j,k)
54 ENDDO
55 ENDDO
56 ENDDO
57
58 RETURN
59 END

  ViewVC Help
Powered by ViewVC 1.1.22