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

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

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


Revision 1.8 - (show annotations) (download)
Mon Dec 19 11:47:04 2011 UTC (12 years, 4 months ago) by mlosch
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, checkpoint63h, checkpoint63i, checkpoint63j, 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.7: +5 -7 lines
use sigmaR in calc_ivdc rather than rhokp1 and rhokm1

1 C $Header: /u/gcmpack/MITgcm/model/src/calc_ivdc.F,v 1.7 2005/06/22 00:25:32 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5 CBOP
6 C !ROUTINE: CALC_IVDC
7 C !INTERFACE:
8 SUBROUTINE CALC_IVDC(
9 I bi, bj, iMin, iMax, jMin, jMax, K,
10 I sigmaR,
11 I myTime,myIter, myThid )
12 C !DESCRIPTION: \bv
13 C *==========================================================*
14 C | SUBROUTINE CALC_IVDC
15 C | o Calculates Implicit Vertical Diffusivity for Convection
16 C \==========================================================*
17 C \ev
18 C !USES:
19 IMPLICIT NONE
20 C == Global data ==
21 #include "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "DYNVARS.h"
25 #include "GRID.h"
26
27 C !INPUT/OUTPUT PARAMETERS:
28 C == Routine arguments ==
29 C bi,bj,iMin,iMax,jMin,jMax,K :: Loop counters
30 C rhoKm1 :: rho in layer above
31 C rhoKp1 :: rho in layer below
32 C myTime :: Current time in simulation
33 C myIter :: Current iteration in simulation
34 C myThid :: Thread number of this instance of S/R CALC_IVDC
35 INTEGER bi,bj,iMin,iMax,jMin,jMax,K
36 _RL sigmaR(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
37 _RL myTime
38 INTEGER myIter
39 INTEGER myThid
40
41 C !LOCAL VARIABLES:
42 C == Local variables ==
43 C i,j :: Loop counters
44 INTEGER i,j
45 CEOP
46
47 C-- Where statically unstable, mix the heat and salt
48 DO j=jMin,jmax
49 DO i=iMin,imax
50 IF ( -sigmaR(i,j,k)*gravitySign.GT.0. ) THEN
51 IVDConvCount(i,j,k,bi,bj) = 1. _d 0
52 ELSE
53 IVDConvCount(i,j,k,bi,bj) = 0. _d 0
54 ENDIF
55 ENDDO
56 ENDDO
57
58 RETURN
59 END

  ViewVC Help
Powered by ViewVC 1.1.22