diff --git a/dune/fem-dg/operator/limiter/limitpass.hh b/dune/fem-dg/operator/limiter/limitpass.hh index 99a29b9b958318a2b188cab287df3d43933bef0d..2132dd4c305c6a4ba71a44d620848cd59a2c18eb 100644 --- a/dune/fem-dg/operator/limiter/limitpass.hh +++ b/dune/fem-dg/operator/limiter/limitpass.hh @@ -1417,7 +1417,7 @@ namespace Dune { { // check all neighbors EntityPointerType ep = intersection.outside(); - EntityType& nb = *ep; + const EntityType& nb = *ep; // get U on entity const LocalFunctionType uNb = U.localFunction(nb); @@ -2431,7 +2431,7 @@ namespace Dune { { // get neighbor entity EntityPointerType ep = intersection.outside(); - EntityType& nb = *ep; + const EntityType& nb = *ep; // set neighbor to caller caller().setNeighbor( nb );