summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-04-10 14:12:34 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-04-10 14:12:34 (GMT)
commit0a3191e36d4ee22c383de9b0917990149c1f2df2 (patch)
tree06893e1f21922c47308b6fd9e0f45521f29ce20a /examples
parentc5d9a4cc7c2529a444459c0c5934ea5b43f62d43 (diff)
downloadhdf5-0a3191e36d4ee22c383de9b0917990149c1f2df2.zip
hdf5-0a3191e36d4ee22c383de9b0917990149c1f2df2.tar.gz
hdf5-0a3191e36d4ee22c383de9b0917990149c1f2df2.tar.bz2
[svn-r23569] - remove mpi stuff from vol example
- use versioning for HDF5 routines so that --with-default-api-version=v16 does not break things
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_external_log_native_vol.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/h5_external_log_native_vol.c b/examples/h5_external_log_native_vol.c
index 024a115..70b336d 100644
--- a/examples/h5_external_log_native_vol.c
+++ b/examples/h5_external_log_native_vol.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include "mpi.h"
#include "hdf5.h"
#define LOG 502
@@ -162,8 +161,6 @@ int main(int argc, char **argv) {
char name[25];
static hsize_t ds_size[2] = {10, 20};
- MPI_Init(&argc, &argv);
-
under_fapl = H5Pcreate (H5P_FILE_ACCESS);
H5Pset_fapl_native(under_fapl);
vol_id = H5VLregister (&H5VL_log_g);
@@ -184,7 +181,7 @@ int main(int argc, char **argv) {
printf ("DT COMMIT name = %s %d\n", name, len);
H5Tclose(int_id);
- int_id = H5Topen(file_id, "int", H5P_DEFAULT);
+ int_id = H5Topen2(file_id, "int", H5P_DEFAULT);
len = H5VLget_plugin_name(int_id, name, 50);
printf ("DT OPEN name = %s %d\n", name, len);
H5Tclose(int_id);
@@ -205,7 +202,7 @@ int main(int argc, char **argv) {
space = H5Screate_simple (2, ds_size, ds_size);
sprintf(fullpath,"%s/%s",group_name,dataset_name);
- datasetId = H5Dcreate(file_id,fullpath,H5T_NATIVE_INT,dataspaceId,H5P_DEFAULT,H5P_DEFAULT,H5P_DEFAULT);
+ datasetId = H5Dcreate2(file_id,fullpath,H5T_NATIVE_INT,dataspaceId,H5P_DEFAULT,H5P_DEFAULT,H5P_DEFAULT);
H5Sclose(dataspaceId);
len = H5VLget_plugin_name(datasetId, name, 50);
@@ -245,7 +242,6 @@ int main(int argc, char **argv) {
H5Pclose(under_fapl);
H5VLunregister (vol_id);
- MPI_Finalize();
return 0;
}