/[MITgcm]/MITgcm_contrib/nesting_sannino/nest_child/nest_child_init_varia.F
ViewVC logotype

Annotation of /MITgcm_contrib/nesting_sannino/nest_child/nest_child_init_varia.F

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


Revision 1.3 - (hide annotations) (download)
Sun Nov 28 02:01:49 2010 UTC (14 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +68 -10 lines
initialise variables in common block (from NEST_CHILD.h)

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm_contrib/nesting_sannino/nest_child/nest_child_init_varia.F,v 1.2 2009/10/23 19:44:02 sannino Exp $
2 heimbach 1.1 C $Name: $
3    
4     #include "NEST_CHILD_OPTIONS.h"
5 jmc 1.3
6 heimbach 1.1 CBOP 0
7     C !ROUTINE: NEST_CHILD_INIT_VARIA
8 jmc 1.3 C !INTERFACE:
9 heimbach 1.1
10     SUBROUTINE NEST_CHILD_INIT_VARIA( myThid )
11    
12     C !DESCRIPTION:
13 jmc 1.3 C Routine to initialize NEST_CHILD variables.
14 heimbach 1.1
15     C !USES:
16     IMPLICIT NONE
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "PARAMS.h"
20     #include "NEST_CHILD.h"
21     #include "NEST_CHILD_PARAMS.h"
22    
23     C !INPUT PARAMETERS:
24 jmc 1.3 C myThid :: my Thread Id number
25 heimbach 1.1 INTEGER myThid
26     CEOP
27    
28     C !LOCAL VARIABLES:
29 jmc 1.3 C bi,bj :: tile indices
30     C i,j,k :: loop index
31     INTEGER bi, bj
32     INTEGER i, j, k
33 heimbach 1.1
34 jmc 1.3 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
35 heimbach 1.1
36 jmc 1.3 C-- Initialise passage counter
37     _BEGIN_MASTER(myThid)
38     PASSI = 0
39     _END_MASTER(myThid)
40    
41     C-- Initialise all arrays in common blocks (from NEST_CHILD.h)
42    
43     C- Vertical Section arrays (i=1 : West section , i=2 : Eastern section)
44     C note: tile indices are missing
45     DO i=1,2
46     DO k=1,Nr
47     DO j=1-Oly,sNy+Oly
48     U_F1 (j,k,i) = 0. _d 0
49     V_F1 (j,k,i) = 0. _d 0
50     T_F1 (j,k,i) = 0. _d 0
51     S_F1 (j,k,i) = 0. _d 0
52     ETA_F1 (j,k,i) = 0. _d 0
53     dETAhdt_F1(j,k,i) = 0. _d 0
54     gU_F1 (j,k,i) = 0. _d 0
55     gV_F1 (j,k,i) = 0. _d 0
56     gT_F1 (j,k,i) = 0. _d 0
57     gS_F1 (j,k,i) = 0. _d 0
58     guNm1_F1 (j,k,i) = 0. _d 0
59     gvNm1_F1 (j,k,i) = 0. _d 0
60     gtNm1_F1 (j,k,i) = 0. _d 0
61     gsNm1_F1 (j,k,i) = 0. _d 0
62     ENDDO
63     ENDDO
64     ENDDO
65    
66     C-- Over all tiles
67     DO bj = myByLo(myThid), myByHi(myThid)
68     DO bi = myBxLo(myThid), myBxHi(myThid)
69    
70     C- 3D arrays
71     DO k=1,Nr
72     DO j=1-Oly,sNy+Oly
73     DO i=1-Olx,sNx+Olx
74     guNm1_MEMO(i,j,k,bi,bj) = 0. _d 0
75     gvNm1_MEMO(i,j,k,bi,bj) = 0. _d 0
76     gtNm1_MEMO(i,j,k,bi,bj) = 0. _d 0
77     gsNm1_MEMO(i,j,k,bi,bj) = 0. _d 0
78     ENDDO
79     ENDDO
80     ENDDO
81    
82     C- 2D arrays
83     DO j=1-Oly,sNy+Oly
84     DO i=1-Olx,sNx+Olx
85     dEtaHdt_MEMO(i,j,bi,bj) = 0. _d 0
86     ENDDO
87     ENDDO
88    
89     C-- end bi,bj loops
90     ENDDO
91     ENDDO
92 heimbach 1.1
93 jmc 1.3 RETURN
94     END

  ViewVC Help
Powered by ViewVC 1.1.22