Commit 59d00dd3 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de

Merge branch 'dont-use-localindexset-with-dune-functions-2.6' into 'master'

Do not use LocalIndexSet with dune-functions 2.6

See merge request !54
parents 7175fca9 71fd8653
Pipeline #26677 failed with stage
in 62 minutes and 49 seconds
......@@ -73,7 +73,7 @@ public:
*/
int index(const Element& element, const int i) const
{
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,6)
auto localIndexSet = dfBasis_.localIndexSet();
localView_.bind(element);
......
......@@ -35,14 +35,14 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
boundaryDofs.unsetAll();
auto localView = basis.localView();
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,6)
auto localIndexSet = basis.localIndexSet();
#endif
for (auto it = boundaryPatch.begin(); it != boundaryPatch.end(); ++it)
{
localView.bind(it->inside());
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,6)
localIndexSet.bind(localView);
#endif
const auto& localCoefficients = localView.tree().finiteElement().localCoefficients();
......@@ -57,7 +57,7 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
unsigned int codim = localCoefficients.localKey(i).codim();
if (it.containsInsideSubentity(entity, codim))
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,6)
boundaryDofs[localIndexSet.index(i)] = true;
#else
boundaryDofs[localView.index(i)] = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment