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

[disc] Improve flexibility of default grid geometry traits wrt custom mappers

parent c489ecc0
No related branches found
No related tags found
1 merge request!1008Feature/improve custom mapper handling
...@@ -45,9 +45,9 @@ namespace Dumux { ...@@ -45,9 +45,9 @@ namespace Dumux {
* Defines the scv and scvf types and the mapper types * Defines the scv and scvf types and the mapper types
* \tparam the grid view type * \tparam the grid view type
*/ */
template<class GridView> template<class GridView, class MapperTraits = DefaultMapperTraits<GridView>>
struct BoxDefaultGridGeometryTraits struct BoxDefaultGridGeometryTraits
: public DefaultMapperTraits<GridView> : public MapperTraits
{ {
using SubControlVolume = BoxSubControlVolume<GridView>; using SubControlVolume = BoxSubControlVolume<GridView>;
using SubControlVolumeFace = BoxSubControlVolumeFace<GridView>; using SubControlVolumeFace = BoxSubControlVolumeFace<GridView>;
......
...@@ -44,9 +44,9 @@ namespace Dumux { ...@@ -44,9 +44,9 @@ namespace Dumux {
* Defines the scv and scvf types and the mapper types * Defines the scv and scvf types and the mapper types
* \tparam the grid view type * \tparam the grid view type
*/ */
template<class GridView> template<class GridView, class MapperTraits = DefaultMapperTraits<GridView>>
struct CCTpfaDefaultGridGeometryTraits struct CCTpfaDefaultGridGeometryTraits
: public DefaultMapperTraits<GridView> : public MapperTraits
{ {
using SubControlVolume = CCSubControlVolume<GridView>; using SubControlVolume = CCSubControlVolume<GridView>;
using SubControlVolumeFace = CCTpfaSubControlVolumeFace<GridView>; using SubControlVolumeFace = CCTpfaSubControlVolumeFace<GridView>;
......
...@@ -40,8 +40,9 @@ namespace Dumux { ...@@ -40,8 +40,9 @@ namespace Dumux {
* \ingroup StaggeredDiscretization * \ingroup StaggeredDiscretization
* \brief Default traits for the finite volume grid geometry. * \brief Default traits for the finite volume grid geometry.
*/ */
template<class GridView> template<class GridView, class MapperTraits = DefaultMapperTraits<GridView>>
struct StaggeredFreeFlowDefaultFVGridGeometryTraits : public DefaultMapperTraits<GridView> struct StaggeredFreeFlowDefaultFVGridGeometryTraits
: public MapperTraits
{ {
using SubControlVolume = CCSubControlVolume<GridView>; using SubControlVolume = CCSubControlVolume<GridView>;
using SubControlVolumeFace = FreeFlowStaggeredSubControlVolumeFace<GridView>; using SubControlVolumeFace = FreeFlowStaggeredSubControlVolumeFace<GridView>;
......
...@@ -49,9 +49,9 @@ namespace Dumux { ...@@ -49,9 +49,9 @@ namespace Dumux {
* Defines the scv and scvf types and the mapper types * Defines the scv and scvf types and the mapper types
* \tparam the grid view type * \tparam the grid view type
*/ */
template<class GridView> template<class GridView, class MapperTraits = DefaultMapperTraits<GridView>>
struct BoxDfmDefaultGridGeometryTraits struct BoxDfmDefaultGridGeometryTraits
: public DefaultMapperTraits<GridView> : public MapperTraits
{ {
using SubControlVolume = BoxDfmSubControlVolume<GridView>; using SubControlVolume = BoxDfmSubControlVolume<GridView>;
using SubControlVolumeFace = BoxDfmSubControlVolumeFace<GridView>; using SubControlVolumeFace = BoxDfmSubControlVolumeFace<GridView>;
......
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