Do not use LocalIndexSet with dune-functions 2.6

The LocalIndexSet interface class is already deprecated in
dune-functions 2.6, and the new-style alternative LocalView
can be used.  Therefore, only use LocalIndexSet objects
if dune-functions is *older than* 2.6.
parent ca6ab2ed
Pipeline #23516 failed with stage
in 65 minutes and 52 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