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
8233df46
Commit
8233df46
authored
4 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[basegridgeometry] Use more robust way to choose ctor of mappers
* use std::is_constructible
parent
4f233aef
No related branches found
No related tags found
1 merge request
!2245
[basegridgeometry] Use more robust way to choose ctor of mappers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/basegridgeometry.hh
+2
-2
2 additions, 2 deletions
dumux/discretization/basegridgeometry.hh
with
2 additions
and
2 deletions
dumux/discretization/basegridgeometry.hh
+
2
−
2
View file @
8233df46
...
...
@@ -194,7 +194,7 @@ private:
//! Return an instance of the element mapper
ElementMapper
makeElementMapper_
(
const
GridView
&
gridView
)
const
{
if
constexpr
(
std
::
is_
same_v
<
ElementMapper
,
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GridView
>>
)
if
constexpr
(
std
::
is_
constructible
<
ElementMapper
,
GridView
,
Dune
::
MCMGLayout
>
()
)
return
ElementMapper
(
gridView
,
Dune
::
mcmgElementLayout
());
else
return
ElementMapper
(
gridView
);
...
...
@@ -203,7 +203,7 @@ private:
//! Return an instance of the vertex mapper
VertexMapper
makeVertexMapper_
(
const
GridView
&
gridView
)
const
{
if
constexpr
(
std
::
is_
same_v
<
VertexMapper
,
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GridView
>>
)
if
constexpr
(
std
::
is_
constructible
<
VertexMapper
,
GridView
,
Dune
::
MCMGLayout
>
()
)
return
VertexMapper
(
gridView
,
Dune
::
mcmgVertexLayout
());
else
return
VertexMapper
(
gridView
);
...
...
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