/[MITgcm]/MITgcm/pkg/gmredi/gmredi_init.F
ViewVC logotype

Annotation of /MITgcm/pkg/gmredi/gmredi_init.F

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


Revision 1.9 - (hide annotations) (download)
Wed Mar 24 15:21:15 2004 UTC (20 years, 3 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint57b_post, checkpoint56b_post, checkpoint54d_post, checkpoint54e_post, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint54f_post, checkpoint55a_post, checkpoint55i_post, checkpoint55c_post, checkpoint53d_post, checkpoint57a_post, checkpoint54b_post, checkpoint52m_post, checkpoint55g_post, checkpoint55d_post, checkpoint53c_post, checkpoint55d_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint53g_post, checkpoint56a_post, checkpoint53f_post, checkpoint54a_pre, checkpoint53b_pre, checkpoint52n_post, checkpoint56c_post, checkpoint57a_pre, checkpoint53b_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Changes since 1.8: +2 -6 lines
Deleting declarations of unused variables

1 adcroft 1.9 C $Header: /u/gcmpack/MITgcm/pkg/gmredi/gmredi_init.F,v 1.8 2002/11/14 22:43:49 heimbach Exp $
2     C $Name: $
3 adcroft 1.1
4     #include "GMREDI_OPTIONS.h"
5    
6     SUBROUTINE GMREDI_INIT( myThid )
7     C /==========================================================\
8     C | SUBROUTINE GMREDI_INIT |
9     C | o Routine to initialize GM/Redi variables and constants. |
10     C |==========================================================|
11     C | Initialize GM/Redi parameters, read in data.gmredi |
12     C \==========================================================/
13     IMPLICIT NONE
14    
15     C === Global variables ===
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18     #include "PARAMS.h"
19     #include "GRID.h"
20     #include "GMREDI.h"
21     #include "GMREDI_DIAGS.h"
22    
23     C === Routine arguments ===
24     C myThid - Number of this instance of KPP_INIT
25     INTEGER myThid
26    
27     #ifdef ALLOW_GMREDI
28    
29     C === Local variables ===
30 jmc 1.6 INTEGER i,j,k,bi,bj
31    
32     DO bj = myByLo(myThid), myByHi(myThid)
33     DO bi = myBxLo(myThid), myBxHi(myThid)
34    
35     C Initialize arrays in common blocks :
36     DO k=1,Nr
37     DO j=1-Oly,sNy+OLy
38     DO i=1-Olx,sNx+Olx
39 heimbach 1.7 Kwx(i,j,k,bi,bj) = 0. _d 0
40     Kwy(i,j,k,bi,bj) = 0. _d 0
41     Kwz(i,j,k,bi,bj) = 0. _d 0
42 jmc 1.6 #ifdef GM_EXTRA_DIAGONAL
43 heimbach 1.7 Kuz(i,j,k,bi,bj) = 0. _d 0
44     Kvz(i,j,k,bi,bj) = 0. _d 0
45 jmc 1.6 #endif
46     #ifdef GM_NON_UNITY_DIAGONAL
47 heimbach 1.7 Kux(i,j,k,bi,bj) = 0. _d 0
48     Kvy(i,j,k,bi,bj) = 0. _d 0
49 jmc 1.6 #endif
50     #ifdef GM_BOLUS_ADVEC
51 heimbach 1.7 GM_PsiX(i,j,k,bi,bj) = 0. _d 0
52     GM_PsiY(i,j,k,bi,bj) = 0. _d 0
53 jmc 1.6 #endif
54     #ifdef GM_VISBECK_VARIABLE_K
55 heimbach 1.7 VisbeckK(i,j,bi,bj) = 0. _d 0
56 jmc 1.6 #endif
57     ENDDO
58     ENDDO
59     ENDDO
60 adcroft 1.1
61 jmc 1.5 #ifdef ALLOW_TIMEAVE
62 adcroft 1.1 C Initialize averages to zero
63 jmc 1.5 CALL TIMEAVE_RESET(GM_Kwx_T,Nr, bi,bj,myThid)
64     CALL TIMEAVE_RESET(GM_Kwy_T,Nr, bi,bj,myThid)
65     CALL TIMEAVE_RESET(GM_Kwz_T,Nr, bi,bj,myThid)
66 adcroft 1.1 DO k=1,Nr
67 heimbach 1.7 GM_TimeAve(k,bi,bj)=0. _d 0
68 adcroft 1.1 ENDDO
69     #ifdef GM_VISBECK_VARIABLE_K
70 jmc 1.5 CALL TIMEAVE_RESET(Visbeck_K_T, 1, bi,bj,myThid)
71 adcroft 1.1 #endif
72 jmc 1.6 #ifdef GM_BOLUS_ADVEC
73     CALL TIMEAVE_RESET(GM_PsiXtave,Nr, bi,bj,myThid)
74     CALL TIMEAVE_RESET(GM_PsiYtave,Nr, bi,bj,myThid)
75     #endif
76     #endif /* ALLOW_TIMEAVE */
77    
78     C- end bi,bj loops
79 adcroft 1.1 ENDDO
80     ENDDO
81     #endif /* ALLOW_GMREDI */
82    
83     return
84     end

  ViewVC Help
Powered by ViewVC 1.1.22