Skip to content
Snippets Groups Projects
Commit 813a8ebb authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[facet][gridmanager] do not use detail namespace for precondition checks

parent 298d78b6
No related branches found
No related tags found
1 merge request!1431Feature/facetcoupling with mpfa
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include "gmshreader.hh" #include "gmshreader.hh"
namespace Dumux { namespace Dumux {
namespace Detail { namespace FCGridManagerChecks {
// The grid creator and grid data classes provided below // The grid creator and grid data classes provided below
// require that the grids passed as template arguments are // require that the grids passed as template arguments are
...@@ -84,8 +84,8 @@ template<typename... Grids> ...@@ -84,8 +84,8 @@ template<typename... Grids>
class FacetCouplingGridDataWrapper class FacetCouplingGridDataWrapper
{ {
// make sure all grids have the same world dimension and are ordered in descending dimension // make sure all grids have the same world dimension and are ordered in descending dimension
static_assert(Detail::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!"); static_assert(FCGridManagerChecks::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!");
static_assert(Detail::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!"); static_assert(FCGridManagerChecks::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!");
//! determine the number of involved grids //! determine the number of involved grids
static constexpr std::size_t numGrids = sizeof...(Grids); static constexpr std::size_t numGrids = sizeof...(Grids);
...@@ -154,8 +154,8 @@ template<typename... Grids> ...@@ -154,8 +154,8 @@ template<typename... Grids>
class FacetCouplingEmbeddings class FacetCouplingEmbeddings
{ {
// make sure all grids have the same world dimension and are ordered in descending dimension // make sure all grids have the same world dimension and are ordered in descending dimension
static_assert(Detail::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!"); static_assert(FCGridManagerChecks::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!");
static_assert(Detail::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!"); static_assert(FCGridManagerChecks::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!");
//! the i-th grid type //! the i-th grid type
template<std::size_t id> using Grid = typename std::tuple_element_t<id, std::tuple<Grids...>>; template<std::size_t id> using Grid = typename std::tuple_element_t<id, std::tuple<Grids...>>;
...@@ -284,8 +284,8 @@ template<typename... Grids> ...@@ -284,8 +284,8 @@ template<typename... Grids>
class FacetCouplingGridManager class FacetCouplingGridManager
{ {
// make sure all grids have the same world dimension and are ordered in descending dimension // make sure all grids have the same world dimension and are ordered in descending dimension
static_assert(Detail::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!"); static_assert(FCGridManagerChecks::FulfillConditions<false, Grids...>::value, "All grids must have the same world dimension!");
static_assert(Detail::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!"); static_assert(FCGridManagerChecks::FulfillConditions<true, Grids...>::value, "Grids must be ordered w.r.t the dimension in descending order!");
// we use a wrapper class for the grid data containing the data on all grids // we use a wrapper class for the grid data containing the data on all grids
using GridDataWrapper = FacetCouplingGridDataWrapper<Grids...>; using GridDataWrapper = FacetCouplingGridDataWrapper<Grids...>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment