Skip to content
Snippets Groups Projects
Commit 3f57260d authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Don't use deprecated template structure of ReferenceElement

parent 01223288
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ class AlienElementLocalBasisFunction :
*/
void evaluateAll(const DomainType& x, std::vector<RangeType>& yy) const
{
const Dune::ReferenceElement<double, Entity::dimension>& alienRefElement
= Dune::ReferenceElements<double, Entity::dimension>::general(alienEntity_.type());
const auto& alienRefElement = Dune::ReferenceElements<double, Entity::dimension>::general(alienEntity_.type());
const DomainType globalPosition = entity_.geometry().global(x);
const DomainType alienLocalPosition = alienEntity_.geometry().local(globalPosition);
......
......@@ -140,8 +140,7 @@ class P3NodalBasis :
return edgeOffset_ + 2*indexSet.subIndex(e,0,0) + localKey.index();
else {
const Dune::ReferenceElement<double,dim>& refElement
= Dune::ReferenceElements<double,dim>::general(e.type());
const auto& refElement = Dune::ReferenceElements<double,dim>::general(e.type());
// we have to reverse the numbering if the local triangle edge is
// not aligned with the global edge
......@@ -169,8 +168,7 @@ class P3NodalBasis :
else
DUNE_THROW(Dune::NotImplemented, "2d elements have to be triangles or quadrilaterals");
} else {
const Dune::ReferenceElement<double,dim>& refElement
= Dune::ReferenceElements<double,dim>::general(e.type());
const auto& refElement = Dune::ReferenceElements<double,dim>::general(e.type());
assert(refElement.type(localKey.subEntity(), localKey.codim()).isTriangle());
return triangleOffset_ + indexSet.subIndex(e,localKey.subEntity(),localKey.codim());
......
......@@ -102,7 +102,7 @@ void setupSubgridToHostgridTransfer(TransferOperatorType& matrix, const SubGridB
const FLFE& fineFE = hostgridbasis.getLocalFiniteElement(*fIt);
// we need the reference element to get the local position of the subentities corresponding to fine basis functions
const Dune::ReferenceElement<double,dim>& fineRefElement = Dune::ReferenceElements<double, dim>::general(fIt->type());
const auto& fineRefElement = Dune::ReferenceElements<double, dim>::general(fIt->type());
// loop over all child nodes
for (size_t j=0; j<fineFE.localBasis().size(); ++j)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment