dune-grid  2.2.0
checkparallel.hh
Go to the documentation of this file.
00001 #ifndef DUNE_ALUGRID_CHECKPARALLEL_HH
00002 #define DUNE_ALUGRID_CHECKPARALLEL_HH
00003 
00004 #if HAVE_ALUGRID
00005 #include <alugrid_defineparallel.h>
00006 
00007 #if HAVE_MPI
00008   // if this variable is defined, 
00009   // // then parallel version of ALUGrid is compiled
00010   #if ALU3DGRID_BUILD_FOR_PARALLEL == 0
00011     #warning "The ALUGrid-library wasn't compiled for parallel usage. Reconfigure\
00012  using the MPI compiler script or compile Dune without the MPI support!\
00013  Defaulting to serial ALUGrid!"
00014     #define ALU3DGRID_PARALLEL 0
00015   #else 
00016     #define ALU3DGRID_PARALLEL 1
00017   #endif
00018 #else  // #if HAVE_MPI
00019   #define ALU3DGRID_PARALLEL 0
00020 #endif // #else  // #if HAVE_MPI
00021 
00022 #else // #if HAVE_ALUGRID
00023   #define ALU3DGRID_PARALLEL 0
00024 #endif // #else // #if HAVE_ALUGRID
00025 
00026 #endif // #ifndef DUNE_ALUGRID_CHECKPARALLEL_HH