Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
11002fa3
Commit
11002fa3
authored
Nov 29, 2017
by
Timo Koch
Browse files
[mpfa][scvf] Make backwards compatible with dune 2.5
parent
c1831778
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/mpfa/subcontrolvolumeface.hh
View file @
11002fa3
...
...
@@ -23,6 +23,7 @@
#ifndef DUMUX_DISCRETIZATION_CC_MPFA_SUBCONTROLVOLUMEFACE_HH
#define DUMUX_DISCRETIZATION_CC_MPFA_SUBCONTROLVOLUMEFACE_HH
#include
<dune/common/version.hh>
#include
"methods.hh"
namespace
Dumux
...
...
@@ -144,7 +145,11 @@ public:
const
GlobalPosition
&
unitOuterNormal
()
const
{
return
unitOuterNormal_
;
}
//! The geometry of the sub control volume face
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
Geometry
geometry
()
const
{
return
Geometry
(
Dune
::
GeometryTypes
::
cube
(
Geometry
::
mydimension
),
corners_
);
}
#else
Geometry
geometry
()
const
{
return
Geometry
(
Dune
::
GeometryType
(
Dune
::
GeometryType
::
cube
,
Geometry
::
mydimension
),
corners_
);
}
#endif
private:
bool
boundary_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment