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
d36ba2ee
Commit
d36ba2ee
authored
6 years ago
by
Bernd Flemisch
Browse files
Options
Downloads
Patches
Plain Diff
[cornerpoint] simplify determination of GeometryParamType
parent
7188f2b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1011
Feature/support cpgrid
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/subcontrolvolume.hh
+1
-2
1 addition, 2 deletions
dumux/discretization/cellcentered/subcontrolvolume.hh
with
1 addition
and
2 deletions
dumux/discretization/cellcentered/subcontrolvolume.hh
+
1
−
2
View file @
d36ba2ee
...
...
@@ -75,8 +75,7 @@ class CCSubControlVolume
// be hardcoded to `Geometry&&` again.
using
Element
=
typename
GV
::
template
Codim
<
0
>
::
Entity
;
using
GeometryRT
=
decltype
(
std
::
declval
<
Element
>
().
geometry
());
using
GeometryRTWithoutRef
=
typename
std
::
remove_reference
<
GeometryRT
>::
type
;
static
constexpr
bool
grtIsReference
=
!
std
::
is_same
<
GeometryRT
,
GeometryRTWithoutRef
>::
value
;
static
constexpr
bool
grtIsReference
=
std
::
is_lvalue_reference
<
GeometryRT
>::
value
;
using
GeometryParamType
=
std
::
conditional_t
<
grtIsReference
,
Geometry
,
Geometry
&&>
;
public:
//! export the type used for global coordinates
...
...
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