1 |
cnh |
1.5 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/cycle_tracer.F,v 1.4 2001/09/19 02:43:27 adcroft Exp $ |
2 |
adcroft |
1.4 |
C $Name: $ |
3 |
adcroft |
1.2 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
cnh |
1.5 |
CBOP |
7 |
|
|
C !ROUTINE: CYCLE_TRACER |
8 |
|
|
C !INTERFACE: |
9 |
adcroft |
1.2 |
SUBROUTINE CYCLE_TRACER( |
10 |
|
|
I bi, bj, iMin, iMax, jMin, jMax, K, |
11 |
|
|
U tracer, gTracer, gTrNm1, |
12 |
|
|
I myTime, myThid ) |
13 |
cnh |
1.5 |
C !DESCRIPTION: \bv |
14 |
|
|
C *==========================================================* |
15 |
|
|
C | S/R CYCLE_TRACER |
16 |
|
|
C *==========================================================* |
17 |
|
|
C | o Cycles the time-stepping arrays for a tracer field |
18 |
|
|
C *==========================================================* |
19 |
|
|
C \ev |
20 |
|
|
C !USES: |
21 |
adcroft |
1.2 |
IMPLICIT NONE |
22 |
|
|
C Common |
23 |
|
|
#include "SIZE.h" |
24 |
|
|
#include "EEPARAMS.h" |
25 |
|
|
#include "PARAMS.h" |
26 |
cnh |
1.5 |
C !INPUT/OUTPUT PARAMETERS: |
27 |
adcroft |
1.2 |
C == Routine Arguments == |
28 |
cnh |
1.5 |
C bi,bj,iMin,iMax,jMin,jMax, K :: Loop counters |
29 |
|
|
C tracer, gTracer, gTrNm1 :: Tracer field, with tendencies |
30 |
|
|
C myThid :: Instance number for |
31 |
|
|
C this call to S/R CORRECTION_STEP |
32 |
|
|
C myTime :: Current simulation time for this instance. |
33 |
adcroft |
1.2 |
INTEGER bi,bj,iMin,iMax,jMin,jMax,K |
34 |
|
|
_RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
35 |
|
|
_RL gTracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
36 |
|
|
_RL gTrNm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
37 |
|
|
INTEGER myThid |
38 |
|
|
_RL myTime |
39 |
|
|
|
40 |
cnh |
1.5 |
C !LOCAL VARIABLES: |
41 |
adcroft |
1.2 |
C == Local variables == |
42 |
|
|
INTEGER i,j |
43 |
cnh |
1.5 |
CEOP |
44 |
adcroft |
1.2 |
|
45 |
|
|
C Rotate tracer/gTracer/gTrNm1 |
46 |
|
|
DO j=jMin,jMax |
47 |
|
|
DO i=iMin,iMax |
48 |
adcroft |
1.4 |
tracer(i,j,k,bi,bj)=gTracer(i,j,k,bi,bj) |
49 |
adcroft |
1.2 |
ENDDO |
50 |
|
|
ENDDO |
51 |
|
|
|
52 |
|
|
RETURN |
53 |
|
|
END |