ESScript  Revision_4488
mpi_C.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15 
16 
17 /*
18  mpi_C.h
19 
20  Ensures that no C++ stuff leaks into Paso/Finley from mpi.h
21 */
22 
23 #ifdef ESYS_MPI
24 
25 /*
26 #ifndef MPI_NO_CPPBIND
27  #define MPI_NO_CPPBIND
28  #include <mpi.h>
29  #undef MPI_NO_CPPBIND
30 #else
31  #include <mpi.h>
32 #endif
33 */
34 #ifndef ESYS_MPI_C
35 #define ESYS_MPI_C
36 
37 #define OMPI_SKIP_MPICXX
38 #define MPICH_SKIP_MPICXX
39 #include <mpi.h>
40 #undef MPICH_SKIP_MPICXX
41 #undef OMPI_SKIP_MPICXX
42 
43 #endif /* ESYS_MPI_C */
44 
45 #endif /* ESYS_MPI */
46