Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
5fe55d41
Commit
5fe55d41
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[test] Use reordering dof mapper in 1p 1d3d tube test
parent
11ac5c76
No related branches found
No related tags found
1 merge request
!1008
Feature/improve custom mapper handling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/porousmediumflow/1p/implicit/tubesproblem.hh
+30
-0
30 additions, 0 deletions
test/porousmediumflow/1p/implicit/tubesproblem.hh
with
30 additions
and
0 deletions
test/porousmediumflow/1p/implicit/tubesproblem.hh
+
30
−
0
View file @
5fe55d41
...
@@ -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
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment