h5_init.h 1022 Bytes
Newer Older
1
/*
gsell's avatar
gsell committed
2
  Copyright (c) 2006-2016, The Regents of the University of California,
3 4 5 6 7 8 9
  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.
*/

gsell's avatar
gsell committed
10 11
#ifndef __PRIVATE_H5_INIT_H
#define __PRIVATE_H5_INIT_H
12 13

#include "h5core/h5_types.h"
gsell's avatar
gsell committed
14
#include "private/h5t_types.h"
15

16 17 18 19 20 21 22 23 24 25 26 27 28
#define UNUSED_ARGUMENT(x) (void)x

// dummy MPI calls for serial code
#if !defined (PARALLEL_IO)
typedef int MPI_Comm;
#define MPI_Init(argc, argv)
#define MPI_Comm_size(comm, nprocs) {(void)comm; *nprocs = 1; }
#define MPI_Comm_rank(comm, myproc) {(void)comm; *myproc = 0; }
#define MPI_Finalize()
#define MPI_COMM_WORLD (0)
#define MPI_COMM_SELF (1)
#endif

29 30 31 32
#ifdef __cplusplus
extern "C" {
#endif

33 34 35
extern int h5_initialized;

h5_err_t
gsell's avatar
gsell committed
36
h5priv_initialize (void);
37

38 39 40 41 42 43 44 45 46 47
extern h5_dta_types_t h5_dta_types;
extern int h5_myproc;


#ifdef __cplusplus
}
#endif


#endif