1 --- include/vapor/MyBase.h~ 2009-06-05 23:19:28.000000000 +0600
2 +++ include/vapor/MyBase.h 2009-11-12 15:59:20.299151873 +0500
8 #include "vaporinternal/common.h"
11 --- lib/vdf/WRF.cpp~ 2009-11-12 16:03:55.572457807 +0500
12 +++ lib/vdf/WRF.cpp 2009-11-12 16:04:17.365791593 +0500
20 #include <vapor/CFuncs.h>
21 --- apps/vaporversion/vaporversion.cpp~ 2009-11-12 16:13:26.613164858 +0500
22 +++ apps/vaporversion/vaporversion.cpp 2009-11-12 16:14:00.329065292 +0500
29 #include <vapor/CFuncs.h>
30 #include <vapor/OptionParser.h>
31 --- apps/wrfvdfcreate/wrfvdfcreate.cpp~ 2009-11-12 16:23:54.515671981 +0500
32 +++ apps/wrfvdfcreate/wrfvdfcreate.cpp 2009-11-12 16:25:06.102332762 +0500
39 #include <vapor/CFuncs.h>
40 #include <vapor/OptionParser.h>
41 --- apps/vdfedit/vdfedit.cpp~ 2009-11-12 16:33:42.272279155 +0500
42 +++ apps/vdfedit/vdfedit.cpp 2009-11-12 16:33:56.772281223 +0500
49 #include <vapor/CFuncs.h>
50 #include <vapor/OptionParser.h>
51 --- apps/tiff2geotiff/tiff2geotiff.cpp~ 2009-11-12 16:40:59.735569530 +0500
52 +++ apps/tiff2geotiff/tiff2geotiff.cpp 2009-11-12 16:41:04.282236044 +0500
54 else if (streq(opt, "packbits"))
55 defcompression = COMPRESSION_PACKBITS;
56 else if (strneq(opt, "jpeg", 4)) {
57 - char* cp = strchr(opt, ':');
58 + const char* cp = strchr(opt, ':');
59 if (cp && isdigit(cp[1]))
61 if (cp && strchr(cp, 'r'))
63 } else if (streq(opt, "g4"))
64 defcompression = COMPRESSION_CCITTFAX4;
65 else if (strneq(opt, "lzw", 3)) {
66 - char* cp = strchr(opt, ':');
67 + const char* cp = strchr(opt, ':');
69 defpredictor = atoi(cp+1);
70 defcompression = COMPRESSION_LZW;
71 } else if (strneq(opt, "zip", 3)) {
72 - char* cp = strchr(opt, ':');
73 + const char* cp = strchr(opt, ':');
75 defpredictor = atoi(cp+1);
76 defcompression = COMPRESSION_DEFLATE;
77 --- apps/tiff2geotiff/getopt.cpp~ 2009-11-12 16:47:16.578865102 +0500
78 +++ apps/tiff2geotiff/getopt.cpp 2009-11-12 16:50:57.935509746 +0500
80 getopt(int nargc, char** nargv, const char* ostr)
82 const static char *place = EMSG; /* option letter processing */
83 - register char *oli; /* option letter list index */
84 + const register char *oli; /* option letter list index */
87 if (!*place) { /* update scanning pointer */
88 --- apps/flashamr2vdf/flashhdf5.cpp 2009-11-12 16:59:30.645458489 +0500
89 +++ apps/flashamr2vdf/flashhdf5.cpp~ 2009-11-12 16:53:47.738825775 +0500
91 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
92 if (memspace < 0) return(-1);
94 - dataset = H5Dopen(_datasetId, "gid");
95 + dataset = H5Dopen(_datasetId, "gid", 0);
96 if (dataset < 0) return(-1);
97 herr_t status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
100 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
101 if (memspace < 0) return(-1);
103 - dataset = H5Dopen(_datasetId, "gid");
104 + dataset = H5Dopen(_datasetId, "gid", 0);
105 if (dataset < 0) return(-1);
106 herr_t status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
109 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
110 if (memspace < 0) return(-1);
112 - dataset = H5Dopen(_datasetId, "bounding box");
113 + dataset = H5Dopen(_datasetId, "bounding box", 0);
114 if (dataset < 0) return(-1);
115 herr_t status = H5Dread(dataset, H5T_NATIVE_FLOAT, memspace, dataspace,
116 H5P_DEFAULT, bboxes);
118 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
120 /* create the dataset from scratch only if this is our first time */
121 - dataset = H5Dopen(_datasetId, "node type");
122 + dataset = H5Dopen(_datasetId, "node type", 0);
123 if (dataset < 0) return(-1);
124 herr_t status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
125 H5P_DEFAULT, (void *)&ntype);
127 if (memspace < 0) return(-1);
129 /* create the dataset from scratch only if this is our first time */
130 - dataset = H5Dopen(_datasetId, "refine level");
131 + dataset = H5Dopen(_datasetId, "refine level", 0);
132 if (dataset < 0) return(-1);
133 herr_t status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
134 H5P_DEFAULT, (void *)refine_levels);
136 if (memspace < 0) return(-1);
138 /* create the dataset from scratch only if this is our first time */
139 - dataset = H5Dopen(_datasetId, "refine level");
140 + dataset = H5Dopen(_datasetId, "refine level", 0);
141 if (dataset < 0) return(-1);
142 herr_t status = H5Dread(dataset, H5T_NATIVE_INT, memspace, dataspace,
143 H5P_DEFAULT, (void *)&refinelevel);
145 start_4d, stride_4d, count_4d, NULL);
146 if (ierr < 0) return(-1);
148 - dataset = H5Dopen(_datasetId,flash_var_name);
149 + dataset = H5Dopen(_datasetId,flash_var_name, 0);
150 if (dataset < 0) return(-1);
151 herr_t status = H5Dread(dataset, H5T_NATIVE_FLOAT, memspace, dataspace,
152 H5P_DEFAULT, variable);
154 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
155 if (memspace < 0) return(-1);
157 - dataset = H5Dopen(_datasetId, "coordinates");
158 + dataset = H5Dopen(_datasetId, "coordinates", 0);
159 if (dataset < 0) return(-1);
160 herr_t status = H5Dread(dataset, H5T_NATIVE_DOUBLE, memspace, dataspace,
163 memspace = H5Screate_simple(rank, &dimens_1d, NULL);
164 if (memspace < 0) return(-1);
166 - dataset = H5Dopen(_datasetId, "block size");
167 + dataset = H5Dopen(_datasetId, "block size", 0);
168 if (dataset < 0) return(-1);
169 herr_t status = H5Dread(dataset, H5T_NATIVE_DOUBLE, memspace, dataspace,
173 /* manually set the string size */
175 - hid_t dataset = H5Dopen(_datasetId, "unknown names");
176 + hid_t dataset = H5Dopen(_datasetId, "unknown names", 0);
177 if (dataset < 0) return(-1);
178 hid_t dataspace = H5Dget_space(dataset);
179 if (dataspace < 0) return(-1);
184 - hid_t dataset = H5Dopen(_datasetId, "simulation parameters");
185 + hid_t dataset = H5Dopen(_datasetId, "simulation parameters", 0);
186 if (dataset < 0) return(-1);
188 /* create the HDF 5 compound data type to describe the record */
191 int_scalars_t *int_scalars = NULL;
193 - hid_t dataset = H5Dopen(_datasetId, "integer scalars");
194 + hid_t dataset = H5Dopen(_datasetId, "integer scalars", 0);
195 if (dataset < 0) return(-1);
197 hid_t dataspace = H5Dget_space(dataset);
200 real_scalars_t *real_scalars = NULL;
202 - dataset = H5Dopen(_datasetId, "real scalars");
203 + dataset = H5Dopen(_datasetId, "real scalars", 0);
204 if (dataset < 0) return(-1);
206 dataspace = H5Dget_space(dataset);
207 @@ -1035,7 +1035,7 @@
209 run_params_t *run_params = NULL;
211 - hid_t dataset = H5Dopen(_datasetId, "integer runtime parameters");
212 + hid_t dataset = H5Dopen(_datasetId, "integer runtime parameters", 0);
213 if (dataset < 0) return(-1);
215 hid_t dataspace = H5Dget_space(dataset);
216 @@ -1114,7 +1114,7 @@
218 run_params_t *run_params = NULL;
220 - hid_t dataset = H5Dopen(_datasetId, "real runtime parameters");
221 + hid_t dataset = H5Dopen(_datasetId, "real runtime parameters", 0);
222 if (dataset < 0) return(-1);
224 hid_t dataspace = H5Dget_space(dataset);
225 @@ -1194,7 +1194,7 @@
227 run_params_t *run_params = NULL;
229 - hid_t dataset = H5Dopen(_datasetId, "string runtime parameters");
230 + hid_t dataset = H5Dopen(_datasetId, "string runtime parameters", 0);
231 if (dataset < 0) return(-1);
233 hid_t dataspace = H5Dget_space(dataset);