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

Avoid deprecated signutare of ReferenceElement by using auto keyword

parent 55746f87
Branches
Tags
No related merge requests found
...@@ -187,7 +187,7 @@ public: ...@@ -187,7 +187,7 @@ public:
const auto inside = i.inside(); const auto inside = i.inside();
int localFaceIndex = i.indexInInside(); int localFaceIndex = i.indexInInside();
const Dune::ReferenceElement<double,dim>& refElement = Dune::ReferenceElements<double, dim>::general(inside.type()); const auto& refElement = Dune::ReferenceElements<double, dim>::general(inside.type());
// Get global node ids // Get global node ids
int n = refElement.size(localFaceIndex, 1, dim); int n = refElement.size(localFaceIndex, 1, dim);
...@@ -401,8 +401,7 @@ public: ...@@ -401,8 +401,7 @@ public:
return false; return false;
if (codim==1) if (codim==1)
return this->faces_[mapper_->subIndex(en, subEntity, 1)][0]; return this->faces_[mapper_->subIndex(en, subEntity, 1)][0];
const Dune::ReferenceElement<double,GridView::dimension>& refElement const auto& refElement = Dune::ReferenceElements<double, GridView::dimension>::general(en.type());
= Dune::ReferenceElements<double, GridView::dimension>::general(en.type());
for (int faceIdx = 0; faceIdx<refElement.size(1); ++faceIdx) for (int faceIdx = 0; faceIdx<refElement.size(1); ++faceIdx)
{ {
...@@ -518,7 +517,7 @@ public: ...@@ -518,7 +517,7 @@ public:
// loop over all elements // loop over all elements
for (const auto& e : elements(*gridView_)) { for (const auto& e : elements(*gridView_)) {
const Dune::ReferenceElement<double,dim>& refElement = Dune::ReferenceElements<double, dim>::general(e.type()); const auto& refElement = Dune::ReferenceElements<double, dim>::general(e.type());
// Loop over all neighbors // Loop over all neighbors
for (const auto& is : intersections(*gridView_,e)) { for (const auto& is : intersections(*gridView_,e)) {
...@@ -573,7 +572,7 @@ public: ...@@ -573,7 +572,7 @@ public:
// loop over all elements // loop over all elements
for (const auto& e : elements(*gridView_)) { for (const auto& e : elements(*gridView_)) {
const Dune::ReferenceElement<double,dim>& refElement = Dune::ReferenceElements<double, dim>::general(e.type()); const auto& refElement = Dune::ReferenceElements<double, dim>::general(e.type());
// Loop over all neighbors // Loop over all neighbors
for (const auto& is : intersections(*gridView_,e)) { for (const auto& is : intersections(*gridView_,e)) {
...@@ -648,8 +647,7 @@ public: ...@@ -648,8 +647,7 @@ public:
for (; it!=endIt; ++it) { for (; it!=endIt; ++it) {
const auto inside = it->inside(); const auto inside = it->inside();
const Dune::ReferenceElement<double,dim>& refElement const auto& refElement = Dune::ReferenceElements<double, dim>::general(inside.type());
= Dune::ReferenceElements<double, dim>::general(inside.type());
// Compute actual surface normals // Compute actual surface normals
int n = refElement.size(it->indexInInside(),1,dim); int n = refElement.size(it->indexInInside(),1,dim);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment