Skip to content
Snippets Groups Projects
Commit 92046962 authored by akbib's avatar akbib
Browse files

Merge branch 'support-dune-functions-2.6' into 'master'

Provide backward-compatibility with dune-functions-2.6

See merge request !29
parents 9c2cd2fb 28743f30
Branches
No related tags found
1 merge request!29Provide backward-compatibility with dune-functions-2.6
Pipeline #
......@@ -8,6 +8,8 @@
@author Oliver Sander
*/
#include <dune/common/version.hh>
#include <dune/fufem/functionspacebases/functionspacebasis.hh>
......@@ -71,8 +73,17 @@ public:
*/
int index(const Element& element, const int i) const
{
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
auto localIndexSet = dfBasis_.localIndexSet();
localView_.bind(element);
localIndexSet.bind(localView_);
return localIndexSet.index(i)[0];
#else
localView_.bind(element);
return localView_.index(i)[0];
#endif
}
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment