[cig-commits] r11526 - cs/benchmark/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Mon Mar 24 09:27:18 PDT 2008
Author: luis
Date: 2008-03-24 09:27:18 -0700 (Mon, 24 Mar 2008)
New Revision: 11526
Modified:
cs/benchmark/cigma/trunk/src/HdfWriter.cpp
cs/benchmark/cigma/trunk/src/HdfWriter.h
Log:
Added method for writing an integer dataset (needed for search command)
Modified: cs/benchmark/cigma/trunk/src/HdfWriter.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/HdfWriter.cpp 2008-03-24 16:27:16 UTC (rev 11525)
+++ cs/benchmark/cigma/trunk/src/HdfWriter.cpp 2008-03-24 16:27:18 UTC (rev 11526)
@@ -64,3 +64,13 @@
// ---------------------------------------------------------------------------
+
+int HdfWriter::write_int_dataset(const char *loc, int *data, int rows, int cols)
+{
+ int ierr;
+ ierr = HdfDataset::write2(h5.file_id, loc, "", H5T_NATIVE_INT, data, rows, cols);
+ return ierr;
+}
+
+
+// ---------------------------------------------------------------------------
Modified: cs/benchmark/cigma/trunk/src/HdfWriter.h
===================================================================
--- cs/benchmark/cigma/trunk/src/HdfWriter.h 2008-03-24 16:27:16 UTC (rev 11525)
+++ cs/benchmark/cigma/trunk/src/HdfWriter.h 2008-03-24 16:27:18 UTC (rev 11526)
@@ -30,6 +30,9 @@
int write_connectivity(const char *loc, int *connectivity, int nel, int ndofs);
public:
+ int write_int_dataset(const char *loc, int *data, int rows, int cols);
+
+public:
HdfFile h5;
};
More information about the cig-commits
mailing list