Skip to content

Commit

Permalink
[bugfix][CpGrid::Entity] added specialized referenceElement method for
Browse files Browse the repository at this point in the history
Entity.
  • Loading branch information
Robert Kloefkorn committed Dec 11, 2019
1 parent ea9c65f commit d4930cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opm/grid/cpgrid/Entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ namespace Dune
}
};
} // namespace cpgrid

#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 7)
template <int codim>
auto referenceElement(const Dune::cpgrid::Entity<codim>& entity) -> decltype(referenceElement<double, 3>(entity.type()))
{ return referenceElement<double, 3>(entity.type()); }
#endif

} // namespace Dune

// now we include the Iterators.hh We need to do this here because for hbegin/hend the compiler
Expand Down

0 comments on commit d4930cc

Please sign in to comment.