dune-grid  2.2.1
checkparallel.hh
Go to the documentation of this file.
1 #ifndef DUNE_ALUGRID_CHECKPARALLEL_HH
2 #define DUNE_ALUGRID_CHECKPARALLEL_HH
3 
4 #if HAVE_ALUGRID
5 #include <alugrid_defineparallel.h>
6 
7 #if HAVE_MPI
8  // if this variable is defined,
9  // // then parallel version of ALUGrid is compiled
10  #if ALU3DGRID_BUILD_FOR_PARALLEL == 0
11  #warning "The ALUGrid-library wasn't compiled for parallel usage. Reconfigure\
12  using the MPI compiler script or compile Dune without the MPI support!\
13  Defaulting to serial ALUGrid!"
14  #define ALU3DGRID_PARALLEL 0
15  #else
16  #define ALU3DGRID_PARALLEL 1
17  #endif
18 #else // #if HAVE_MPI
19  #define ALU3DGRID_PARALLEL 0
20 #endif // #else // #if HAVE_MPI
21 
22 #else // #if HAVE_ALUGRID
23  #define ALU3DGRID_PARALLEL 0
24 #endif // #else // #if HAVE_ALUGRID
25 
26 #endif // #ifndef DUNE_ALUGRID_CHECKPARALLEL_HH