/[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.17 - (hide annotations) (download)
Tue Dec 13 15:12:53 2011 UTC (12 years, 5 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint65a, checkpoint63g, checkpoint64, checkpoint65, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f
Changes since 1.16: +7 -2 lines
comment out masking of gtracer, lets keep our fingers crossed

1 mlosch 1.17 C $Header: /u/gcmpack/MITgcm/model/src/timestep_tracer.F,v 1.16 2011/05/23 00:33:38 jmc Exp $
2 adcroft 1.2 C $Name: $
3 adcroft 1.1
4 jmc 1.15 #include "PACKAGES_CONFIG.h"
5 adcroft 1.1 #include "CPP_OPTIONS.h"
6    
7 cnh 1.8 CBOP
8     C !ROUTINE: TIMESTEP_TRACER
9     C !INTERFACE:
10 adcroft 1.2 SUBROUTINE TIMESTEP_TRACER(
11 jmc 1.16 I bi, bj, k, deltaTloc,
12     I tracer,
13     U gTracer,
14 adcroft 1.2 I myIter, myThid )
15 cnh 1.8 C !DESCRIPTION: \bv
16     C *==========================================================*
17 jmc 1.15 C | S/R TIMESTEP_TRACER
18     C | o Step model tracer field forward in time
19 cnh 1.8 C *==========================================================*
20     C \ev
21    
22     C !USES:
23 adcroft 1.2 IMPLICIT NONE
24     C == Global variables ===
25 adcroft 1.1 #include "SIZE.h"
26     #include "EEPARAMS.h"
27     #include "PARAMS.h"
28 jmc 1.15 #include "GRID.h"
29 adcroft 1.2
30 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
31 adcroft 1.1 C == Routine Arguments ==
32 jmc 1.16 INTEGER bi, bj, k
33 jahn 1.14 _RL deltaTloc
34 adcroft 1.1 _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     INTEGER myIter, myThid
37 cnh 1.8
38     C !LOCAL VARIABLES:
39 adcroft 1.1 C == Local variables ==
40     INTEGER i,j
41 cnh 1.8 CEOP
42 adcroft 1.1
43 jmc 1.5 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
44    
45 jmc 1.15 C- Step tracer forward in time and store provisional value in gTracer array
46     DO j=1-Oly,sNy+Oly
47     DO i=1-Olx,sNx+Olx
48 adcroft 1.7 gTracer(i,j,k,bi,bj)=tracer(i,j,k,bi,bj)
49 jahn 1.14 & +deltaTloc*gTracer(i,j,k,bi,bj)
50 jmc 1.15 #ifdef ALLOW_OBCS
51 mlosch 1.17 CML For the Stevens open boundary conditions, we need to step forward
52     CML the tracer even on the boundary in order to include surface
53     CML forcing and (vertical) diffusion contributions. For other cases
54     CML this mask was meant to avoid unrealistic values on the open boundaries.
55     CML Lets hope that we can live without this safety net.
56     C & *maskInC(i,j,bi,bj)
57 jmc 1.15 #endif
58 jmc 1.5 ENDDO
59     ENDDO
60 adcroft 1.1
61     RETURN
62     END

  ViewVC Help
Powered by ViewVC 1.1.22