Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
1aef6e5e
Commit
1aef6e5e
authored
Apr 13, 2022
by
Happel, Lea
Browse files
use-referencehelper-from-dune-common-for-Coarsened-Gridfunction
parent
d31f69fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/gridfunctions/CoarsenedGridFunction.hpp
View file @
1aef6e5e
...
...
@@ -3,7 +3,7 @@
#include
<functional>
#include
<type_traits>
#include
<dune/
functions/
common/referencehelper.hh>
#include
<dune/common/referencehelper.hh>
#include
<dune/functions/gridfunctions/gridviewentityset.hh>
#include
<amdis/common/TypeTraits.hpp>
...
...
@@ -193,18 +193,18 @@ public:
template
<
class
GF_
=
GF
>
auto
makeDerivative
()
const
->
CoarsenedGridFunction
<
GV
,
TYPEOF
(
derivative
(
Dune
::
Functions
::
resolveRef
(
std
::
declval
<
GF_
const
&>
())))
>
TYPEOF
(
derivative
(
Dune
::
resolveRef
(
std
::
declval
<
GF_
const
&>
())))
>
{
return
{
gridView_
,
derivative
(
Dune
::
Functions
::
resolveRef
(
gridFct_
))};
return
{
gridView_
,
derivative
(
Dune
::
resolveRef
(
gridFct_
))};
}
/// \brief Construct local function from a DiscreteGlobalBasisFunction
auto
makeLocalFunction
()
const
{
using
LF
=
TYPEOF
(
localFunction
(
Dune
::
Functions
::
resolveRef
(
gridFct_
)));
using
LF
=
TYPEOF
(
localFunction
(
Dune
::
resolveRef
(
gridFct_
)));
using
LocalFunction
=
CoarsenedLocalFunction
<
EntitySet
,
LF
>
;
return
LocalFunction
{
gridFct_
.
entitySet
(),
localFunction
(
Dune
::
Functions
::
resolveRef
(
gridFct_
)),
localFunction
(
Dune
::
resolveRef
(
gridFct_
)),
gridView_
.
grid
().
maxLevel
()};
}
...
...
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