Dune Core Modules (2.4.2)

checkparallel.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_ALUGRID_CHECKPARALLEL_HH
4#define DUNE_ALUGRID_CHECKPARALLEL_HH
5
6#if HAVE_ALUGRID
7#include <alugrid_defineparallel.h>
8
9#if HAVE_MPI
10// if this variable is defined,
11// // then parallel version of ALUGrid is compiled
12 #if ALU3DGRID_BUILD_FOR_PARALLEL == 0
13 #warning "The ALUGrid-library wasn't compiled for parallel usage. Reconfigure\
14 using the MPI compiler script or compile Dune without the MPI support!\
15 Defaulting to serial ALUGrid!"
16 #define ALU3DGRID_PARALLEL 0
17 #else
18 #define ALU3DGRID_PARALLEL 1
19 #endif
20#else // #if HAVE_MPI
21 #define ALU3DGRID_PARALLEL 0
22#endif // #else // #if HAVE_MPI
23
24#else // #if HAVE_ALUGRID
25 #define ALU3DGRID_PARALLEL 0
26#endif // #else // #if HAVE_ALUGRID
27
28#endif // #ifndef DUNE_ALUGRID_CHECKPARALLEL_HH
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)