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

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

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


Revision 1.3 - (show annotations) (download)
Fri Dec 11 13:53:07 2009 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint62, checkpoint63, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.2: +16 -7 lines
Implement AB-3 for non-hydrostatic vertical momentum ;
add 2-D field to store Hydrostatic Surface Pressure adjusment (from cg3d).

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_nh_vars.F,v 1.2 2006/06/20 20:57:37 baylor Exp $
2 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 DO j=1-Oly,sNy+Oly
47 DO i=1-Olx,sNx+Olx
48 dPhiNH(i,j,bi,bj) = 0. _d 0
49 ENDDO
50 ENDDO
51 DO k=1,Nr
52 DO j=1-Oly,sNy+Oly
53 DO i=1-Olx,sNx+Olx
54 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 viscAh_W(i,j,k,bi,bj)= 0. _d 0
63 viscA4_W(i,j,k,bi,bj)= 0. _d 0
64 ENDDO
65 ENDDO
66 ENDDO
67 ENDDO
68 ENDDO
69 c ENDIF
70
71 #endif /* ALLOW_NONHYDROSTATIC */
72
73 RETURN
74 END

  ViewVC Help
Powered by ViewVC 1.1.22