/[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.2 - (hide annotations) (download)
Tue Jun 20 20:57:37 2006 UTC (18 years ago) by baylor
Branch: MAIN
CVS Tags: checkpoint58l_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint60, checkpoint61, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post
Changes since 1.1: +4 -1 lines
Pass the variable viscosities on to calc_gw.

1 baylor 1.2 C $Header: /u/gcmpack/MITgcm/model/src/ini_nh_vars.F,v 1.1 2005/11/08 02:13:17 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     DO k=1,Nr
47     DO j=1-Oly,sNy+Oly
48     DO i=1-Olx,sNx+Olx
49     phi_nh(i,j,k,bi,bj) = 0. _d 0
50     gW (i,j,k,bi,bj) = 0. _d 0
51     gWnm1(i,j,k,bi,bj) = 0. _d 0
52 baylor 1.2 C Set the variable viscosities to default value.
53     viscAh_W(i,j,k,bi,bj) = viscAhW
54     viscA4_W(i,j,k,bi,bj) = viscA4W
55 jmc 1.1 ENDDO
56     ENDDO
57     ENDDO
58     ENDDO
59     ENDDO
60     c ENDIF
61    
62     #endif /* ALLOW_NONHYDROSTATIC */
63    
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22