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

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

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


Revision 1.5 - (hide annotations) (download)
Sun Jan 3 18:48:53 2010 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62i, checkpoint62h
Changes since 1.4: +7 -10 lines
avoid unused variables

1 jmc 1.5 C $Header: /u/gcmpack/MITgcm/pkg/ggl90/ggl90_init_varia.F,v 1.4 2009/08/25 21:33:28 jmc Exp $
2 dfer 1.1 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 jmc 1.5 INTEGER I, J, K
26     c INTEGER Km1
27 dfer 1.1 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 jmc 1.5 c Km1 = MAX(K-1,1)
38 dfer 1.1 DO J=1-Oly,sNy+Oly
39     DO I=1-Olx,sNx+Olx
40     CML GGL90TKE(I,J,K,bi,bj)=0. _d 0
41     GGL90TKE(I,J,K,bi,bj)=GGL90TKEmin*maskC(I,J,K,bi,bj)
42     C
43     C hfacs for w (=tke) control volume
44 jmc 1.4 C
45 dfer 1.2 c recip_hFacI(I,J,K,bi,bj) = .5 _d 0*hFacC(I,J,Km1,bi,bj)
46     c & + MIN(.5 _d 0,hFacC(I,J,K,bi,bj))
47     c IF ( recip_hFacI(I,J,K,bi,bj) .NE. 0. _d 0 )
48     c & recip_hFacI(I,J,K,bi,bj)=1. _d 0/recip_hFacI(I,J,K,bi,bj)
49 dfer 1.1 ENDDO
50     ENDDO
51     ENDDO
52    
53     C- 2D arrays
54    
55     ENDDO
56     ENDDO
57    
58 jmc 1.4 IF ( nIter0.NE.0 .OR. pickupSuff.NE.' ' ) THEN
59 dfer 1.1 CALL GGL90_READ_PICKUP( nIter0, myThid )
60     ELSE
61     C-- Read initial turbulent kinetic energy thickness from file if available.
62     IF ( GGL90TKEFile .NE. ' ' ) THEN
63     CALL READ_FLD_XYZ_RL( GGL90TKEFile, ' ', GGL90TKE, 0, myThid )
64 jmc 1.3 _EXCH_XYZ_RL(GGL90TKE,myThid)
65 dfer 1.1 DO bj=myByLo(myThid),myByHi(myThid)
66     DO bi=myBxLo(myThid),myBxHi(myThid)
67 jmc 1.5 DO K=1,Nr
68     DO J=1-OLy,sNy+OLy
69     DO I=1-OLx,sNx+OLx
70 dfer 1.1 GGL90TKE(I,J,K,bi,bj) = MAX(GGL90TKE(I,J,K,bi,bj),
71     & GGL90TKEmin)*maskC(I,J,K,bi,bj)
72     ENDDO
73     ENDDO
74     ENDDO
75     ENDDO
76     ENDDO
77     ENDIF
78     ENDIF
79    
80     #endif /* ALLOW_GGL90 */
81    
82     RETURN
83     END

  ViewVC Help
Powered by ViewVC 1.1.22