aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-01-18 16:59:55 -0500
committerErik Schnetter <schnetter@gmail.com>2013-01-18 16:59:55 -0500
commitde0152cb621a8ff7db715959f61ba5c380fa46b7 (patch)
treee77f275a2782562c9a53a641b9285d83917210c4 /Carpet/CarpetIOHDF5
parentba060ea8eec2ed9d10c34c466966bd6ddfa285e9 (diff)
CarpetIOHDF5: Remove unused variables, initialise other variable to avoid compiler warnings
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r--Carpet/CarpetIOHDF5/src/Output.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc
index a6ac668cf..24b5cf7a0 100644
--- a/Carpet/CarpetIOHDF5/src/Output.cc
+++ b/Carpet/CarpetIOHDF5/src/Output.cc
@@ -443,11 +443,9 @@ int WriteVarChunkedSequential (const cGH* const cctkGH,
}
hsize_t shape[dim];
- hssize_t origin[dim];
hsize_t hyperslab_start[dim], hyperslab_count[dim];
for (int d = 0; d < group.dim; ++d) {
assert (group.dim-1-d>=0 and group.dim-1-d<dim);
- origin[group.dim-1-d] = (bbox.lower() / bbox.stride())[d];
shape[group.dim-1-d] = processor_component->padded_shape()[d];
assert (all (processor_component->shape() ==
bbox.shape() / bbox.stride()));
@@ -456,7 +454,7 @@ int WriteVarChunkedSequential (const cGH* const cctkGH,
}
// Write the component as an individual dataset
- hid_t plist, dataspace, dataset, index_dataset;
+ hid_t plist, dataspace, dataset, index_dataset = -1;
HDF5_ERROR (plist = H5Pcreate (H5P_DATASET_CREATE));
// enable compression if requested
const int compression_lvl = request->compression_level >= 0 ?
@@ -638,11 +636,9 @@ int WriteVarChunkedParallel (const cGH* const cctkGH,
// Get the shape of the HDF5 dataset (in Fortran index order)
hsize_t shape[dim];
- hssize_t origin[dim];
hsize_t hyperslab_start[dim], hyperslab_count[dim];
for (int d = 0; d < group.dim; ++d) {
assert (group.dim-1-d>=0 and group.dim-1-d<dim);
- origin[group.dim-1-d] = (bbox.lower() / bbox.stride())[d];
shape[group.dim-1-d] = processor_component->padded_shape()[d];
assert (all (processor_component->shape() ==
bbox.shape() / bbox.stride()));
@@ -651,7 +647,7 @@ int WriteVarChunkedParallel (const cGH* const cctkGH,
}
// Write the component as an individual dataset
- hid_t plist, dataspace, dataset, index_dataset;
+ hid_t plist, dataspace, dataset, index_dataset = -1;
HDF5_ERROR (plist = H5Pcreate (H5P_DATASET_CREATE));
// enable compression if requested
const int compression_lvl = request->compression_level >= 0 ?