/[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.3 - (hide annotations) (download)
Mon Jan 29 20:07:39 2001 UTC (23 years, 4 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint34
Changes since 1.2: +1 -1 lines
Corrected array dimensions.
Temporary scalars introduced to avoid storing by TAMC.

1 heimbach 1.3 C $Header: /u/ralf/cvs/ecco_env/pkg/gmredi/gmredi_init.F,v 1.3 2000/11/14 17:21:41 heimbach Exp $
2 adcroft 1.1
3     #include "GMREDI_OPTIONS.h"
4    
5     SUBROUTINE GMREDI_INIT( myThid )
6     C /==========================================================\
7     C | SUBROUTINE GMREDI_INIT |
8     C | o Routine to initialize GM/Redi variables and constants. |
9     C |==========================================================|
10     C | Initialize GM/Redi parameters, read in data.gmredi |
11     C \==========================================================/
12     IMPLICIT NONE
13    
14     C === Global variables ===
15     #include "SIZE.h"
16     #include "EEPARAMS.h"
17     #include "PARAMS.h"
18     #include "GRID.h"
19     #include "GMREDI.h"
20     #include "GMREDI_DIAGS.h"
21    
22     C === Routine arguments ===
23     C myThid - Number of this instance of KPP_INIT
24     INTEGER myThid
25    
26     #ifdef ALLOW_GMREDI
27    
28     C === Local variables ===
29     C msgBuf - Informational/error meesage buffer
30     C iUnit - Work variable for IO unit number
31     CHARACTER*(MAX_LEN_MBUF) msgBuf
32     INTEGER iUnit
33     INTEGER k,bi,bj
34    
35     #ifdef INCLUDE_DIAGNOSTICS_INTERFACE_CODE
36     C Initialize averages to zero
37     DO bj = myByLo(myThid), myByHi(myThid)
38     DO bi = myBxLo(myThid), myBxHi(myThid)
39     DO k=1,Nr
40     CALL TIMEAVER_INI_XYZ(GM_Kwx_T,bi,bj,K,myThid)
41     CALL TIMEAVER_INI_XYZ(GM_Kwy_T,bi,bj,K,myThid)
42     CALL TIMEAVER_INI_XYZ(GM_Kwz_T,bi,bj,K,myThid)
43     GM_TimeAve(k,bi,bj)=0.
44     ENDDO
45     #ifdef GM_VISBECK_VARIABLE_K
46     CALL TIMEAVER_INI_XY(Visbeck_K_T, bi,bj,myThid)
47     #endif
48     ENDDO
49     ENDDO
50     #endif /* INCLUDE_DIAGNOSTICS_INTERFACE_CODE */
51    
52     #endif /* ALLOW_GMREDI */
53    
54     return
55     end

  ViewVC Help
Powered by ViewVC 1.1.22