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
35c7838f
Commit
35c7838f
authored
7 years ago
by
Christoph Grüninger
Committed by
Timo Koch
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa] Compatibility code for GeometryTypes
parent
13e054b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!725
Fix/compiler errors and warnings clang
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/mpfa/helper.hh
+11
-0
11 additions, 0 deletions
dumux/discretization/cellcentered/mpfa/helper.hh
with
11 additions
and
0 deletions
dumux/discretization/cellcentered/mpfa/helper.hh
+
11
−
0
View file @
35c7838f
...
@@ -533,6 +533,16 @@ public:
...
@@ -533,6 +533,16 @@ public:
*/
*/
static
std
::
size_t
getNumLocalScvfs
(
const
Dune
::
GeometryType
gt
)
static
std
::
size_t
getNumLocalScvfs
(
const
Dune
::
GeometryType
gt
)
{
{
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
if
(
gt
==
Dune
::
GeometryTypes
::
tetrahedron
)
return
12
;
else
if
(
gt
==
Dune
::
GeometryTypes
::
pyramid
)
return
16
;
else
if
(
gt
==
Dune
::
GeometryTypes
::
prism
)
return
18
;
else
if
(
gt
==
Dune
::
GeometryTypes
::
hexahedron
)
return
24
;
#else
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
simplex
,
3
))
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
simplex
,
3
))
return
12
;
return
12
;
else
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
pyramid
,
3
))
else
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
pyramid
,
3
))
...
@@ -541,6 +551,7 @@ public:
...
@@ -541,6 +551,7 @@ public:
return
18
;
return
18
;
else
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
cube
,
3
))
else
if
(
gt
==
Dune
::
GeometryType
(
Dune
::
GeometryType
::
cube
,
3
))
return
24
;
return
24
;
#endif
else
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"Mpfa for 3d geometry type "
<<
gt
);
DUNE_THROW
(
Dune
::
NotImplemented
,
"Mpfa for 3d geometry type "
<<
gt
);
}
}
...
...
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