/[MITgcm]/MITgcm/model/src/ini_nh_vars.F
ViewVC logotype

Annotation of /MITgcm/model/src/ini_nh_vars.F

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


Revision 1.4 - (hide annotations) (download)
Sun Jul 28 21:06:00 2013 UTC (10 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.3: +5 -7 lines
- move horiz-viscosity 3-D arrays viscAh_W & viscA4_W (used in calc_gw.F)
  from model/inc/NH_VARS.h to pkg/mom_common/MOM_VISC.h

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/model/src/ini_nh_vars.F,v 1.3 2009/12/11 13:53:07 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: INI_NH_VARS
8     C !INTERFACE:
9     SUBROUTINE INI_NH_VARS ( myThid )
10     C !DESCRIPTION: \bv
11     C *==========================================================*
12     C | SUBROUTINE INI_NH_VARS
13     C | o Initialise to zero all NH_VARS.h arrays
14     C *==========================================================*
15     C | Sets all the NH State variables & tendencies to zero.
16     C *==========================================================*
17     C \ev
18    
19     C !USES:
20     IMPLICIT NONE
21     C === Global variables ===
22     #include "SIZE.h"
23     #include "EEPARAMS.h"
24     #include "PARAMS.h"
25     #include "NH_VARS.h"
26    
27     C !INPUT/OUTPUT PARAMETERS:
28     C == Routine arguments ==
29     C myThid :: My Thread Id number
30     INTEGER myThid
31     CEOP
32    
33     #ifdef ALLOW_NONHYDROSTATIC
34     C !LOCAL VARIABLES:
35     C == Local variables ==
36     C bi,bj :: tile indices
37     C i,j,k :: loop counters
38     INTEGER bi, bj
39     INTEGER i, j, k
40    
41     c IF ( nonHydrostatic ) THEN
42     C- Note: comment out this IF so that we are sure that all variables in
43     C common blocs (even if never used later) are always initialised
44     DO bj = myByLo(myThid), myByHi(myThid)
45     DO bi = myBxLo(myThid), myBxHi(myThid)
46 jmc 1.4 DO j=1-OLy,sNy+OLy
47     DO i=1-OLx,sNx+OLx
48 jmc 1.3 dPhiNH(i,j,bi,bj) = 0. _d 0
49     ENDDO
50     ENDDO
51 jmc 1.1 DO k=1,Nr
52 jmc 1.4 DO j=1-OLy,sNy+OLy
53     DO i=1-OLx,sNx+OLx
54 jmc 1.3 phi_nh(i,j,k,bi,bj) = 0. _d 0
55     gW (i,j,k,bi,bj) = 0. _d 0
56     #ifdef ALLOW_ADAMSBASHFORTH_3
57     gWnm (i,j,k,bi,bj,1) = 0. _d 0
58     gWnm (i,j,k,bi,bj,2) = 0. _d 0
59     #else /* ALLOW_ADAMSBASHFORTH_3 */
60     gWnm1(i,j,k,bi,bj) = 0. _d 0
61     #endif /* ALLOW_ADAMSBASHFORTH_3 */
62 jmc 1.1 ENDDO
63     ENDDO
64     ENDDO
65     ENDDO
66     ENDDO
67     c ENDIF
68    
69     #endif /* ALLOW_NONHYDROSTATIC */
70    
71     RETURN
72     END

  ViewVC Help
Powered by ViewVC 1.1.22