escript  Revision_4925
mpi_C.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 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 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 
18 /*
19  mpi_C.h
20 
21  Ensures that no C++ stuff leaks into Paso/Finley from mpi.h
22 */
23 
24 #ifdef ESYS_MPI
25 
26 /*
27 #ifndef MPI_NO_CPPBIND
28  #define MPI_NO_CPPBIND
29  #include <mpi.h>
30  #undef MPI_NO_CPPBIND
31 #else
32  #include <mpi.h>
33 #endif
34 */
35 #ifndef ESYS_MPI_C
36 #define ESYS_MPI_C
37 
38 #define OMPI_SKIP_MPICXX
39 #define MPICH_SKIP_MPICXX
40 #include <mpi.h>
41 #undef MPICH_SKIP_MPICXX
42 #undef OMPI_SKIP_MPICXX
43 
44 #endif /* ESYS_MPI_C */
45 
46 #endif /* ESYS_MPI */
47