Commit ecd27234 authored by gsell's avatar gsell
Browse files

examples/H5Fed/tetmesh_{adjacencies,read_tags}.c

- cleanup
parent c9044d8e
Pipeline #13 skipped
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
#include "H5hut.h" #include "H5hut.h"
#define PRINT_UPADJACENCIES 1
#define PRINT_DOWNADJACENCIES 0
const char* FNAME = "simple_tet.h5"; const char* FNAME = "simple_tet.h5";
typedef struct timer { typedef struct timer {
......
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
#include "H5hut.h" #include "H5hut.h"
// name of input file
const char* FNAME = "simple_tet.h5"; const char* FNAME = "simple_tet.h5";
#ifndef PARALLEL_IO // H5hut verbosity/debug level
#ifndef MPI_COMM_WORLD const h5_int64_t h5_verbosity = H5_VERBOSE_DEFAULT;
#define MPI_COMM_WORLD 0 const h5_int64_t h5_debugmsk = H5_DEBUG_ALL;
#endif
#endif
typedef struct timer { typedef struct timer {
clock_t _start; clock_t _start;
...@@ -378,10 +377,12 @@ main ( ...@@ -378,10 +377,12 @@ main (
int argc, int argc,
char* argv[] char* argv[]
) { ) {
/* abort program on error, so we don't have to handle them */ /* abort program on error, so we don't have to handle them */
H5SetErrorHandler (H5AbortErrorhandler); H5SetErrorHandler (H5AbortErrorhandler);
H5SetVerbosityLevel (2); H5SetVerbosityLevel (h5_verbosity);
H5SetDebugMask (h5_debugmsk);
/* open file and get number of meshes */ /* open file and get number of meshes */
h5_file_t f = H5OpenFile (FNAME, H5_O_RDONLY, 0); h5_file_t f = H5OpenFile (FNAME, H5_O_RDONLY, 0);
h5_size_t num_meshes = H5FedGetNumTetrahedralMeshes (f); h5_size_t num_meshes = H5FedGetNumTetrahedralMeshes (f);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment