// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // vi: set et ts=4 sw=2 sts=2: // SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception #include #include #include #include #include #include #include template static void test(Dune::GeometryType type) { FiniteElementCache cache; FiniteElementCache copy = cache; FiniteElementCache move = std::move(copy); copy = move; move = std::move(copy); using FiniteElement = typename FiniteElementCache::FiniteElementType; [[maybe_unused]] const FiniteElement& finiteElement = cache.get(type); } int main() { static constexpr std::size_t max_k = 3; Dune::Hybrid::forEach(std::make_index_sequence{},[&](auto k) { constexpr int dim = 2; using FiniteElementCache = typename Dune::LagrangeLocalFiniteElementCache; test(Dune::GeometryTypes::simplex(dim)); test(Dune::GeometryTypes::cube(dim)); }); { constexpr int dim = 2; using FiniteElementCache = typename Dune::DualPQ1LocalFiniteElementCache; test(Dune::GeometryTypes::simplex(dim)); test(Dune::GeometryTypes::cube(dim)); } { constexpr int dim = 2; constexpr int order = 0; using FiniteElementCache = typename Dune::RaviartThomasLocalFiniteElementCache; test(Dune::GeometryTypes::simplex(dim)); test(Dune::GeometryTypes::cube(dim)); } { constexpr int dim = 2; constexpr int order = 1; using FiniteElementCache = typename Dune::RaviartThomasLocalFiniteElementCache; test(Dune::GeometryTypes::simplex(dim)); test(Dune::GeometryTypes::cube(dim)); } { constexpr int dim = 3; constexpr int order = 0; using FiniteElementCache = typename Dune::RaviartThomasLocalFiniteElementCache; test(Dune::GeometryTypes::simplex(dim)); test(Dune::GeometryTypes::cube(dim)); } return 0; }