diff --git a/dumux/geomechanics/el2p/el2pamgbackend.hh b/dumux/geomechanics/el2p/el2pamgbackend.hh index bb8c3ec9d1a32ef73a9b44b52241882aac85c7d1..1a8a04d6c76925f557ae13d4b9986cf6b751448f 100644 --- a/dumux/geomechanics/el2p/el2pamgbackend.hh +++ b/dumux/geomechanics/el2p/el2pamgbackend.hh @@ -102,7 +102,7 @@ private: for (const auto& element : Dune::elements(this->problem().gridView())) { // loop over all element vertices - int n = element.template count<dim>(); + int n = element.subEntities(dim); for (int i = 0; i < n - 1; ++i) { int globalI = this->problem().vertexMapper().subIndex(element, i, dim); for (int j = i + 1; j < n; ++j) { diff --git a/dumux/geomechanics/el2p/el2passembler.hh b/dumux/geomechanics/el2p/el2passembler.hh index 0b16197c96bfcc26ce8d33f65b059291507a265b..060aa29d98034941714fafeed45b4e8039b33339 100644 --- a/dumux/geomechanics/el2p/el2passembler.hh +++ b/dumux/geomechanics/el2p/el2passembler.hh @@ -324,7 +324,7 @@ public: // find out whether the current element features a red // vertex bool isRed = false; - int numVertices = element.template count<dim>(); + int numVertices = element.subEntities(dim); for (int i=0; i < numVertices; ++i) { int globalI = vertexMapper_().subIndex(element, i, dim); if (vertexColor_[globalI] == Red) { @@ -349,7 +349,7 @@ public: continue; // non-red elements do not tint vertices // yellow! - int numVertices = element.template count<dim>(); + int numVertices = element.subEntities(dim); for (int i=0; i < numVertices; ++i) { int globalI = vertexMapper_().subIndex(element, i, dim); // if a vertex is already red, don't recolor it to @@ -369,7 +369,7 @@ public: // check whether the element features a yellow // (resp. orange at this point) vertex bool isYellow = false; - int numVertices = element.template count<dim>(); + int numVertices = element.subEntities(dim); for (int i=0; i < numVertices; ++i) { int globalI = vertexMapper_().subIndex(element, i, dim); if (vertexColor_[globalI] == Orange) { @@ -390,7 +390,7 @@ public: continue; // yellow and red elements do not make // orange vertices yellow! - int numVertices = element.template count<dim>(); + int numVertices = element.subEntities(dim); for (int i=0; i < numVertices; ++i) { int globalI = vertexMapper_().subIndex(element, i, dim); // if a vertex is orange, recolor it to yellow!