Commit 357ec835 authored by Carsten Gräser's avatar Carsten Gräser

[bugfix][test] Fix boundarypatchprolongatortest by forwarding grid dimension

The test used to extract the grid dimension from the intersection.
This was deprecated and finally removed. As a remedy we now forward
the grid dimnsion explicitly.
parent 2496e2a7
Pipeline #28140 failed with stage
in 61 minutes and 57 seconds
......@@ -14,12 +14,13 @@ struct BoundaryPatchProlongatorTestSuite
//! Extract the part of the boundary with center[dim-1]<=0
template<std::size_t dimension>
struct LowerFaceInsertion {
template <class Intersection>
bool operator() (const Intersection& it) const {
return it.geometry().center()[Intersection::dimension-1]<=0;
return it.geometry().center()[dimension-1]<=0;
......@@ -33,7 +34,7 @@ struct BoundaryPatchProlongatorTestSuite
// make coarse level boundary patch
LevelBP boundary(grid.levelGridView(0));
// prolong boundary patch to leaf grid
LeafBP prolongedLeafBoundary;
......@@ -41,7 +42,7 @@ struct BoundaryPatchProlongatorTestSuite
// create the same leaf patch directly
LeafBP leafBoundary(grid.leafGridView());
// Check if patches are the same
for (const auto& i : leafBoundary)
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