Skip to content
Snippets Groups Projects
Commit 2007b26e authored by graeser's avatar graeser
Browse files

Merge branch 'bugfix/fix-boundarypatchprolongatortest' into 'master'

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

See merge request !66
parents 2496e2a7 357ec835
Branches
No related tags found
1 merge request!66[bugfix][test] Fix boundarypatchprolongatortest by forwarding grid dimension
Pipeline #28141 failed
......@@ -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));
boundary.insertFacesByProperty(LowerFaceInsertion());
boundary.insertFacesByProperty(LowerFaceInsertion<GridType::dimension>());
// prolong boundary patch to leaf grid
LeafBP prolongedLeafBoundary;
......@@ -41,7 +42,7 @@ struct BoundaryPatchProlongatorTestSuite
// create the same leaf patch directly
LeafBP leafBoundary(grid.leafGridView());
leafBoundary.insertFacesByProperty(LowerFaceInsertion());
leafBoundary.insertFacesByProperty(LowerFaceInsertion<GridType::dimension>());
// Check if patches are the same
for (const auto& i : leafBoundary)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment