Dune Core Modules (unstable)

gridtype.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5#ifndef DUNE_GRIDTYPE_HH
6#define DUNE_GRIDTYPE_HH
7
17#include <dune-grid-config.hh> // HAVE_GRIDTYPE
18
19#ifndef HEADERCHECK
20
21// NOGRID is used to specify that no default was set during configure
22// If NOGRID and HAVE_GRIDTYPE are both not set then no grid was selected
23// and an error is produced
24#if defined NOGRID
25 #if ! HAVE_GRIDTYPE
26 #error "No grid type selected, use GRIDTYPE=..."
27 #endif
28#else
29 #if ! HAVE_GRIDTYPE
30 #error "No grid type selected, typo in GRIDTYPE=...?"
31 #endif
32#endif
33
34#endif // HEADERCHECK
35
36#endif // DUNE_GRIDTYPE_HH
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)