/[MITgcm]/MITgcm/pkg/mnc/mnc_init.F
ViewVC logotype

Annotation of /MITgcm/pkg/mnc/mnc_init.F

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


Revision 1.26 - (hide annotations) (download)
Mon May 23 01:08:22 2011 UTC (12 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, 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, checkpoint65, checkpoint63, 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, checkpoint62z, checkpoint62y, HEAD
Changes since 1.25: +1 -2 lines
remove unused EESUPPORT.h include.

1 jmc 1.26 C $Header: /u/gcmpack/MITgcm/pkg/mnc/mnc_init.F,v 1.25 2008/05/22 12:21:19 mlosch Exp $
2 edhill 1.1 C $Name: $
3    
4     #include "MNC_OPTIONS.h"
5    
6 edhill 1.6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 edhill 1.14 CBOP 0
8 edhill 1.13 C !ROUTINE: MNC_INIT
9 edhill 1.1
10 edhill 1.13 C !INTERFACE:
11 edhill 1.11 SUBROUTINE MNC_INIT( myThid )
12 edhill 1.1
13 edhill 1.13 C !DESCRIPTION:
14 edhill 1.14 C Initialize (zero) the look-up tables. This routine should
15     C \textbf{always} be run before any other MNC subroutines to ensure
16     C that the lookup tables start in a well-defined state.
17 edhill 1.13
18     C !USES:
19 edhill 1.20 #include "SIZE.h"
20     #include "EEPARAMS.h"
21     #include "PARAMS.h"
22 mlosch 1.25 #include "MNC_COMMON.h"
23 mlosch 1.24 #include "MNC_PARAMS.h"
24 edhill 1.1
25 edhill 1.13 C !INPUT PARAMETERS:
26 edhill 1.11 integer myThid
27 edhill 1.14 CEOP
28 edhill 1.1
29 edhill 1.13 C !LOCAL VARIABLES:
30 edhill 1.22 integer i,j, g
31 edhill 1.1 character blank*(MNC_MAX_CHAR)
32 edhill 1.22 character bpath*(MNC_MAX_PATH)
33 edhill 1.1
34 edhill 1.8 C Write blanks or zeros to all the internal names and ID tables
35 edhill 1.10 DO i = 1,MNC_MAX_CHAR
36 edhill 1.17 blank(i:i) = ' '
37 edhill 1.1 ENDDO
38 edhill 1.22 DO i = 1,MNC_MAX_PATH
39     bpath(i:i) = ' '
40     ENDDO
41    
42 edhill 1.2 mnc_blank_name(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
43 edhill 1.23 DO i = 1,MNC_MAX_FID
44 edhill 1.22 mnc_f_names(i)(1:MNC_MAX_PATH) = bpath(1:MNC_MAX_PATH)
45 edhill 1.3 DO j = 1,MNC_MAX_INFO
46     mnc_f_info(i,j) = 0
47     mnc_fv_ids(i,j) = 0
48     mnc_fd_ind(i,j) = 0
49 edhill 1.4 mnc_f_alld(i,j) = 0
50 edhill 1.3 ENDDO
51     ENDDO
52 edhill 1.23 DO i = 1,MNC_MAX_ID
53     mnc_d_size(i) = 0
54     mnc_d_ids(i) = 0
55     mnc_g_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
56     mnc_v_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
57     mnc_d_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
58     ENDDO
59 edhill 1.3
60 edhill 1.15 C Blank the CW tables
61 edhill 1.6 DO g = 1,MNC_MAX_ID
62 edhill 1.7 mnc_cw_gname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
63 edhill 1.8 mnc_cw_vname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
64     mnc_cw_vgind(g) = 0
65 edhill 1.21 mnc_cw_vfmv(g) = 0
66 edhill 1.6 mnc_cw_ndim(g) = 0
67 edhill 1.12 mnc_cw_fgnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
68     mnc_cw_fgud(g) = 0
69 edhill 1.16 mnc_cw_fgis(g) = 0
70 edhill 1.20 mnc_cw_fgci(g) = 1
71 edhill 1.19 C mnc_cw_cvnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
72 edhill 1.6 DO i = 1,MNC_CW_MAX_I
73     mnc_cw_dn(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
74 edhill 1.8 mnc_cw_vtnm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
75     mnc_cw_vinm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
76     mnc_cw_vdnm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
77     mnc_cw_vtat(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
78 edhill 1.6 mnc_cw_dims(i,g) = 0
79     mnc_cw_is(i,g) = 0
80     mnc_cw_ie(i,g) = 0
81 edhill 1.8 mnc_cw_viat(i,g) = 0
82     mnc_cw_vdat(i,g) = 0.0D0
83     ENDDO
84     DO i = 1,3
85     mnc_cw_vnat(i,g) = 0
86 edhill 1.10 ENDDO
87     DO i = 1,2
88     mnc_cw_vbij(i,g) = 0
89 edhill 1.21 mnc_cw_vmvi(i,g) = 0
90     mnc_cw_vmvr(i,g) = 0.0
91     mnc_cw_vmvd(i,g) = 0.0D0
92 edhill 1.19 C mnc_cw_cvse(i,g) = 0
93 edhill 1.6 ENDDO
94     ENDDO
95 edhill 1.20
96     DO i = 1,MNC_MAX_INFO
97     mnc_cw_cit(1,i) = 0
98     mnc_cw_cit(2,i) = 0
99     mnc_cw_cit(3,i) = -1
100     ENDDO
101    
102 mlosch 1.24 DO i = 1,2
103     mnc_def_imv(i) = UNSET_I
104     mnc_def_rmv(i) = UNSET_FLOAT4
105     mnc_def_dmv(i) = UNSET_FLOAT8
106     ENDDO
107    
108 edhill 1.20 C The default for all file types is to add the iter to the name and
109     C grow them in "lock step" together
110     mnc_cw_cit(1,1) = 1
111     mnc_cw_cit(2,1) = nIter0
112    
113     C Here, we do not add the iter to the file name
114     mnc_cw_cit(1,2) = -1
115     mnc_cw_cit(2,2) = -1
116    
117     C For checkpoint files, we want to use the current iter but we do
118     C not (by default, anyway) want to update the current iter for
119     C everything else
120     mnc_cw_cit(1,3) = 3
121     mnc_cw_cit(2,3) = nIter0
122    
123 edhill 1.19 C DO i = 1,MNC_CW_CVDAT
124     C mnc_cw_cvdt(i) = 0.0D0
125     C ENDDO
126 edhill 1.6
127 edhill 1.3 RETURN
128     END
129    
130 edhill 1.6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22