Commit 75894c4f authored by graeser's avatar graeser

Merge branch 'feature/deprecate-reference-element-helper' into 'master'

Feature deprecate reference element helper

See merge request !43
parents b1d25f07 422f7486
Pipeline #13400 passed with stage
in 54 minutes and 52 seconds
......@@ -5,9 +5,6 @@
#include <dune/geometry/referenceelements.hh>
#include <dune/fufem/referenceelementhelper.hh>
/** \brief Helper struct that statically either derefences the iterator, if it returns a reference,
* or otherwise return the 'member' intersection.
......@@ -214,7 +211,8 @@ public:
bool containsInsideSubentity(int subEntity, int codim) const
return ReferenceElementHelper<double, dim>::subEntityContainsSubEntity(eIt_->type(), (*nIt_)->indexInInside(), 1, subEntity, codim);
auto re = Dune::referenceElement<double, dim>(eIt_->type());
return re.subEntities((*nIt_)->indexInInside(), 1,codim).contains(subEntity);
......@@ -2,6 +2,7 @@
#include <dune/common/deprecated.hh>
#include <dune/geometry/type.hh>
......@@ -27,6 +28,7 @@ struct ReferenceElementHelper
* \param j Number of possibly contained subentity
* \param jCodim Codim of possibly contained subentity
DUNE_DEPRECATED_MSG("Please referenceElement.subEntities(i,iCodim,jCodim).contains(j) instead")
static bool subEntityContainsSubEntity(const typename Dune::GeometryType& gt, int i, int iCodim, int j, int jCodim)
if (jCodim < iCodim)
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