From 3e1df34962c71ea9683a194753f1174a67aac664 Mon Sep 17 00:00:00 2001 From: Felix Schindler <felix.schindler@wwu.de> Date: Sun, 28 Apr 2019 22:56:29 +0200 Subject: [PATCH] [grids] add AvailableGridTypes (alberta is not suitable for such a tuple) --- dune/xt/grid/grids.hh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/dune/xt/grid/grids.hh b/dune/xt/grid/grids.hh index d20334d7b..ea1117a61 100644 --- a/dune/xt/grid/grids.hh +++ b/dune/xt/grid/grids.hh @@ -13,6 +13,8 @@ #ifndef DUNE_XT_GRID_GRIDS_HH #define DUNE_XT_GRID_GRIDS_HH +#include <boost/tuple/tuple.hpp> + #if HAVE_ALBERTA # include <dune/xt/common/disable_warnings.hh> # include <dune/grid/albertagrid.hh> @@ -60,4 +62,36 @@ typedef Dune::AlbertaGrid<3, 3> ALBERTA_3D; #endif +namespace Dune { +namespace XT { +namespace Grid { + + +using AvailableGridTypes = boost::tuple<ONED_1D, + YASP_1D_EQUIDISTANT_OFFSET, + YASP_2D_EQUIDISTANT_OFFSET, + YASP_3D_EQUIDISTANT_OFFSET, + YASP_4D_EQUIDISTANT_OFFSET +#if HAVE_DUNE_ALUGRID + , + ALU_2D_SIMPLEX_CONFORMING, + ALU_2D_SIMPLEX_NONCONFORMING, + ALU_2D_CUBE, + ALU_3D_SIMPLEX_CONFORMING, + ALU_3D_SIMPLEX_NONCONFORMING, + ALU_3D_CUBE +#endif +#if HAVE_DUNE_UGGRID || HAVE_UG + , + UG_2D, + UG_3D +#endif + >; + + +} // namespace Grid +} // namespace XT +} // namespace Dune + + #endif // DUNE_XT_GRID_GRIDS_HH -- GitLab