aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@4825ed28-b72c-4eae-9704-e50c059e567d>2012-11-22 13:36:52 +0000
committereschnett <eschnett@4825ed28-b72c-4eae-9704-e50c059e567d>2012-11-22 13:36:52 +0000
commit21bc7c3d8828bf36114fd98d196361979b70d1f7 (patch)
treef27edd2d14ade01da06ca7dc945512be583424e3
parent7a19b93481941bc89b1384585ce64a9efcf298fb (diff)
Remove unused variables
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@265 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/util/hdf5_convert_from_carpetiohdf5.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/util/hdf5_convert_from_carpetiohdf5.c b/src/util/hdf5_convert_from_carpetiohdf5.c
index ea95846..82b3804 100644
--- a/src/util/hdf5_convert_from_carpetiohdf5.c
+++ b/src/util/hdf5_convert_from_carpetiohdf5.c
@@ -99,17 +99,8 @@ static herr_t CopyAttribute (hid_t src, const char *attr_name, void *arg);
@@*/
int main (int argc, char **argv)
{
- int i, j;
- int rank;
- int *dims;
- double timestep;
- char *varname, *coordname, *tag;
- double *coords, *data, *bbox, *origin, *delta;
- hid_t infile, outfile, dataset, dataspace, attr, attrDataspace;
+ hid_t infile, outfile, attr, attrDataspace;
hid_t group, hdf5String;
- hsize_t hdf5Dims[MAXDIM];
- int iteration, timelevel;
- char hdf5DatasetName[2 * MAXNAMESIZE];
const char *cactus_version = "Cactus Beta16"; /* CCTK_FullVersion (); */
@@ -236,7 +227,7 @@ static herr_t CopyObject (hid_t from,
const char *objectname,
void *_to)
{
- hid_t to, attr, attr_dataspace, attr_datatype, datatype, dataspace, dataset;
+ hid_t to, attr, datatype, dataspace, dataset;
H5G_stat_t objectinfo;
char *current_pathname, *name;
size_t objectsize;
@@ -305,6 +296,7 @@ static herr_t CopyObject (hid_t from,
if (! unchunked) {
CHECK_ERROR (to = H5Gcreate (to, name, 0));
}
+ dataset = -1;
for (i = 0; i < nprocs; i++) {
char chunkname[20];
sprintf (chunkname, "chunk%d", i);