/[MITgcm]/MITgcm/pkg/ggl90/ggl90_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/ggl90/ggl90_init_varia.F

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


Revision 1.6 - (show annotations) (download)
Mon Aug 9 20:34:03 2010 UTC (13 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: 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, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint65h, checkpoint65i, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62k, checkpoint62j, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.5: +4 -1 lines
Variable initializations and loop indices

1 C $Header: /u/gcmpack/MITgcm/pkg/ggl90/ggl90_init_varia.F,v 1.5 2010/01/03 18:48:53 jmc Exp $
2 C $Name: $
3
4 #include "GGL90_OPTIONS.h"
5
6 SUBROUTINE GGL90_INIT_VARIA( myThid )
7
8 IMPLICIT NONE
9 C === Global variables ===
10 #include "SIZE.h"
11 #include "EEPARAMS.h"
12 #include "PARAMS.h"
13 #include "GRID.h"
14 #include "GGL90.h"
15
16 C == Routine arguments ==
17 C myThid - Number of this instance of GGL90_INIT
18 INTEGER myThid
19
20 C !LOCAL VARIABLES:
21 C == Local variables ==
22 C bi,bj - Loop counters
23 C I,J,K
24 INTEGER bi, bj
25 INTEGER I, J, K
26 c INTEGER Km1
27 CEOP
28
29 #ifdef ALLOW_GGL90
30
31 C-- Over all tiles
32 DO bj = myByLo(myThid), myByHi(myThid)
33 DO bi = myBxLo(myThid), myBxHi(myThid)
34
35 C- 3D arrays
36 DO K=1,Nr
37 c Km1 = MAX(K-1,1)
38 DO J=1-Oly,sNy+Oly
39 DO I=1-Olx,sNx+Olx
40 GGL90viscArU(I,J,K,bi,bj) = 0. _d 0
41 GGL90viscArV(I,J,K,bi,bj) = 0. _d 0
42 GGL90diffKr(I,J,K,bi,bj) = 0. _d 0
43 CML GGL90TKE(I,J,K,bi,bj)=0. _d 0
44 GGL90TKE(I,J,K,bi,bj)=GGL90TKEmin*maskC(I,J,K,bi,bj)
45 C
46 C hfacs for w (=tke) control volume
47 C
48 c recip_hFacI(I,J,K,bi,bj) = .5 _d 0*hFacC(I,J,Km1,bi,bj)
49 c & + MIN(.5 _d 0,hFacC(I,J,K,bi,bj))
50 c IF ( recip_hFacI(I,J,K,bi,bj) .NE. 0. _d 0 )
51 c & recip_hFacI(I,J,K,bi,bj)=1. _d 0/recip_hFacI(I,J,K,bi,bj)
52 ENDDO
53 ENDDO
54 ENDDO
55
56 C- 2D arrays
57
58 ENDDO
59 ENDDO
60
61 IF ( nIter0.NE.0 .OR. pickupSuff.NE.' ' ) THEN
62 CALL GGL90_READ_PICKUP( nIter0, myThid )
63 ELSE
64 C-- Read initial turbulent kinetic energy thickness from file if available.
65 IF ( GGL90TKEFile .NE. ' ' ) THEN
66 CALL READ_FLD_XYZ_RL( GGL90TKEFile, ' ', GGL90TKE, 0, myThid )
67 _EXCH_XYZ_RL(GGL90TKE,myThid)
68 DO bj=myByLo(myThid),myByHi(myThid)
69 DO bi=myBxLo(myThid),myBxHi(myThid)
70 DO K=1,Nr
71 DO J=1-OLy,sNy+OLy
72 DO I=1-OLx,sNx+OLx
73 GGL90TKE(I,J,K,bi,bj) = MAX(GGL90TKE(I,J,K,bi,bj),
74 & GGL90TKEmin)*maskC(I,J,K,bi,bj)
75 ENDDO
76 ENDDO
77 ENDDO
78 ENDDO
79 ENDDO
80 ENDIF
81 ENDIF
82
83 #endif /* ALLOW_GGL90 */
84
85 RETURN
86 END

  ViewVC Help
Powered by ViewVC 1.1.22