version 3.9-dev
consistentlyorientedgrid.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_CONSISTENTLY_ORIENTED_GRID_HH
13#define DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_CONSISTENTLY_ORIENTED_GRID_HH
14
15#include <type_traits>
16
17// forward declare
18namespace Dune {
19template<int dim, class Coordinates>
21
22template <int dim, class HostGrid, bool mapIndexStorage>
23class SubGrid;
24
25}
26
27namespace Dumux {
28
34template<class T>
35struct ConsistentlyOrientedGrid : public std::false_type {};
36
37template<int dim, class Coords>
38struct ConsistentlyOrientedGrid<Dune::YaspGrid<dim, Coords>> : public std::true_type {};
39
40template<int dim, class Coords, bool mapIndexStorage>
41struct ConsistentlyOrientedGrid<Dune::SubGrid<dim, Dune::YaspGrid<dim, Coords>, mapIndexStorage>> : public std::true_type {};
42
43
44} // end namespace Dumux
45
46#endif
Definition: consistentlyorientedgrid.hh:23
Definition: consistentlyorientedgrid.hh:20
Definition: adapt.hh:17
Definition: common/pdesolver.hh:24
Helper type to determine whether a grid is guaranteed to be oriented consistently....
Definition: consistentlyorientedgrid.hh:35