Commit bfe11265 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Add changes to LagrangeGridCreator to suppress deprecation warning

parent 41a5a6fd
Pipeline #6679 passed with stage
in 7 minutes and 3 seconds
......@@ -8,6 +8,7 @@
#include <dune/common/exceptions.hh>
#include <dune/common/hybridutilities.hh>
#include <dune/common/version.hh>
#include <dune/geometry/utility/typefromvertexcount.hh>
#include <dune/geometry/multilineargeometry.hh>
#include <dune/localfunctions/lagrange.hh>
......@@ -205,7 +206,11 @@ namespace Dune
GeometryType type = localParam.type;
int nNodes = localParam.nodes.size();
for (int o = 1; o <= nNodes; ++o)
#if DUNE_VERSION_LT(DUNE_LOCALFUNCTIONS,2,8)
if (numLagrangePoints(type.id(), type.dim(), o) == std::size_t(nNodes))
#else
if (numLagrangePoints(type, o) == std::size_t(nNodes))
#endif
return o;
return 1;
......
Supports Markdown
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