Skip to content
Snippets Groups Projects
Commit 5fe55d41 authored by Timo Koch's avatar Timo Koch
Browse files

[test] Use reordering dof mapper in 1p 1d3d tube test

parent 11ac5c76
No related branches found
No related tags found
1 merge request!1008Feature/improve custom mapper handling
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <dune/foamgrid/foamgrid.hh> #include <dune/foamgrid/foamgrid.hh>
#endif #endif
#include <dumux/common/reorderingdofmapper.hh>
#include <dumux/discretization/cellcentered/tpfa/properties.hh> #include <dumux/discretization/cellcentered/tpfa/properties.hh>
#include <dumux/discretization/box/properties.hh> #include <dumux/discretization/box/properties.hh>
#include <dumux/discretization/methods.hh> #include <dumux/discretization/methods.hh>
...@@ -59,6 +60,35 @@ NEW_TYPE_TAG(TubesTestBoxTypeTag, INHERITS_FROM(BoxModel, TubesTestTypeTag)); ...@@ -59,6 +60,35 @@ NEW_TYPE_TAG(TubesTestBoxTypeTag, INHERITS_FROM(BoxModel, TubesTestTypeTag));
SET_TYPE_PROP(TubesTestTypeTag, Grid, Dune::FoamGrid<1, 3>); SET_TYPE_PROP(TubesTestTypeTag, Grid, Dune::FoamGrid<1, 3>);
#endif #endif
// if we have pt scotch use the reordering dof mapper to optimally sort the dofs (cc)
SET_PROP(TubesTestCCTpfaTypeTag, FVGridGeometry)
{
private:
static constexpr bool enableCache = GET_PROP_VALUE(TypeTag, EnableFVGridGeometryCache);
using GridView = typename GET_PROP_TYPE(TypeTag, GridView);
using ElementMapper = ReorderingDofMapper<GridView>;
using VertexMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
using MapperTraits = DefaultMapperTraits<GridView, ElementMapper, VertexMapper>;
public:
using type = CCTpfaFVGridGeometry<GridView, enableCache, CCTpfaDefaultGridGeometryTraits<GridView, MapperTraits>>;
};
// if we have pt scotch use the reordering dof mapper to optimally sort the dofs (box)
SET_PROP(TubesTestBoxTypeTag, FVGridGeometry)
{
private:
static constexpr bool enableCache = GET_PROP_VALUE(TypeTag, EnableFVGridGeometryCache);
using GridView = typename GET_PROP_TYPE(TypeTag, GridView);
using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
using ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
using VertexMapper = ReorderingDofMapper<GridView>;
using MapperTraits = DefaultMapperTraits<GridView, ElementMapper, VertexMapper>;
public:
using type = BoxFVGridGeometry<Scalar, GridView, enableCache, BoxDefaultGridGeometryTraits<GridView, MapperTraits>>;
};
// Set the problem property // Set the problem property
SET_TYPE_PROP(TubesTestTypeTag, Problem, TubesTestProblem<TypeTag>); SET_TYPE_PROP(TubesTestTypeTag, Problem, TubesTestProblem<TypeTag>);
......
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