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

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

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


Revision 1.3 - (show annotations) (download)
Mon Mar 5 01:11:43 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63k, checkpoint65o, 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, HEAD
Changes since 1.2: +13 -13 lines
fix description (comments)

1 C $Header: /u/gcmpack/MITgcm/model/src/convectively_mixtracer.F,v 1.2 2002/02/26 20:34:14 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: CONVECTIVELY_MIXTRACER
8 C !INTERFACE:
9 SUBROUTINE CONVECTIVELY_MIXTRACER(
10 I bi, bj, k, weightA, weightB,
11 U Tracer,
12 I myThid )
13 C !DESCRIPTION:
14 C Mixes a tracer over two layers according to the weights pre-calculated
15 C as a function of stability.
16 C
17 C Mixing is represented by:
18 C T(k-1) = T(k-1) + A * ( T(k) - T(k-1) )
19 C T(k) = T(k) + B * ( T(k-1) - T(k) )
20
21 C !USES:
22 IMPLICIT NONE
23 #include "SIZE.h"
24 #include "EEPARAMS.h"
25
26 C !INPUT/OUTPUT PARAMETERS:
27 C bi,bj,k :: indices
28 C weightA :: weight for level k-1
29 C weightB :: weight for level k
30 C myThid :: my Thread Id number
31 INTEGER bi,bj,k
32 _RL weightA(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
33 _RL weightB(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
34 _RL Tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
35 INTEGER myThid
36
37 #ifdef INCLUDE_CONVECT_CALL
38
39 C !LOCAL VARIABLES:
40 C i,j :: Loop counter
41 C delTrac :: Difference between tracer in each layer
42 INTEGER i,j
43 _RL delTrac
44 CEOP
45
46 DO j=1-OLy,sNy+OLy
47 DO i=1-OLx,sNx+OLx
48
49 delTrac=Tracer(i,j,k,bi,bj)-Tracer(i,j,k-1,bi,bj)
50 Tracer(i,j,k-1,bi,bj)=Tracer(i,j,k-1,bi,bj)
51 & +weightA(i,j)*delTrac
52 Tracer(i,j,k,bi,bj)=Tracer(i,j,k,bi,bj)
53 & -weightB(i,j)*delTrac
54
55 ENDDO
56 ENDDO
57
58 #endif /* INCLUDE_CONVECT_CALL */
59
60 RETURN
61 END

  ViewVC Help
Powered by ViewVC 1.1.22