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