From c8eecb51ae0f4f35b04b7149600e282eae285097 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 31 Oct 2013 13:39:40 +0100 Subject: [PATCH] typo in filename 'examples/H5Part/use_core_vfd.c' fixed --- examples/H5Part/use_core_cfd.c | 56 ---------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 examples/H5Part/use_core_cfd.c diff --git a/examples/H5Part/use_core_cfd.c b/examples/H5Part/use_core_cfd.c deleted file mode 100644 index bf81ede..0000000 --- a/examples/H5Part/use_core_cfd.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - Copyright (c) 2006-2013, The Regents of the University of California, - through Lawrence Berkeley National Laboratory (subject to receipt of any - required approvals from the U.S. Dept. of Energy) and the Paul Scherrer - Institut (Switzerland). All rights reserved. - - License: see file COPYING in top level of source distribution. -*/ - -#include "H5hut.h" -#include "examples.h" - -#include -#include - -#define FNAME "example_core_vfd" -#define DATASIZE 32 - -int -main ( - int argc, char* argv[] - ){ - H5AbortOnError (); - H5SetVerbosityLevel (VERBOSITY); - - h5_int32_t data[DATASIZE]; - h5_int64_t stat; - h5_file_t file; - - // initialize MPI - MPI_Init (&argc, &argv); - MPI_Comm_rank (MPI_COMM_WORLD, &rank); - MPI_Comm_size (MPI_COMM_WORLD, &nprocs); - - char filename[32]; - sprintf (filename, "%s.%d.h5", FNAME, rank); - file = H5OpenFile (filename, H5_O_WRONLY|H5_VFD_CORE, MPI_COMM_SELF); - - H5SetStep (file, 0); - - H5PartSetNumParticles(file, DATASIZE); - - // create fake data - for (int i = 0; i < DATASIZE; i++) { - data[i] = i + rank * DATASIZE; - } - - // write the data - H5PartWriteDataInt32 (file, "data", data); - - H5CloseFile (file); - - MPI_Finalize (); - return H5_SUCCESS; -} -