/[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.5 - (hide annotations) (download)
Tue Mar 6 18:01:07 2001 UTC (23 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, release1_b1, checkpoint43, checkpoint38, checkpoint40pre2, checkpoint40pre4, pre38tag1, c37_adj, pre38-close, checkpoint39, checkpoint37, checkpoint40pre5, ecco-branch-mod1, release1_beta1, checkpoint42, checkpoint40, checkpoint41
Branch point for: release1_coupled, release1, ecco-branch, pre38
Changes since 1.4: +8 -8 lines
change Time-Average routine names (new package) ; use CPP-opt ALLOW_TIMEAVE

1 jmc 1.5 C $Header: /u/gcmpack/models/MITgcmUV/pkg/gmredi/gmredi_init.F,v 1.4 2001/02/04 14:38:49 cnh 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     C msgBuf - Informational/error meesage buffer
31     C iUnit - Work variable for IO unit number
32     CHARACTER*(MAX_LEN_MBUF) msgBuf
33     INTEGER iUnit
34     INTEGER k,bi,bj
35    
36 jmc 1.5 #ifdef ALLOW_TIMEAVE
37 adcroft 1.1 C Initialize averages to zero
38     DO bj = myByLo(myThid), myByHi(myThid)
39     DO bi = myBxLo(myThid), myBxHi(myThid)
40 jmc 1.5 CALL TIMEAVE_RESET(GM_Kwx_T,Nr, bi,bj,myThid)
41     CALL TIMEAVE_RESET(GM_Kwy_T,Nr, bi,bj,myThid)
42     CALL TIMEAVE_RESET(GM_Kwz_T,Nr, bi,bj,myThid)
43 adcroft 1.1 DO k=1,Nr
44     GM_TimeAve(k,bi,bj)=0.
45     ENDDO
46     #ifdef GM_VISBECK_VARIABLE_K
47 jmc 1.5 CALL TIMEAVE_RESET(Visbeck_K_T, 1, bi,bj,myThid)
48 adcroft 1.1 #endif
49     ENDDO
50     ENDDO
51 jmc 1.5 #endif /* ALLOW_TIMEAVE */
52 adcroft 1.1
53     #endif /* ALLOW_GMREDI */
54    
55     return
56     end

  ViewVC Help
Powered by ViewVC 1.1.22