Skip to content
Snippets Groups Projects
Commit b94d0fc1 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'fix/bBoxTest' into 'master'

[test][bBoxTree] Adapt to change in Dune::AxisAlignedCubeGeometry

See merge request !2283
parents b11a8e3e f8aea998
No related branches found
No related tags found
1 merge request!2283[test][bBoxTree] Adapt to change in Dune::AxisAlignedCubeGeometry
......@@ -296,7 +296,19 @@ int main (int argc, char *argv[])
using GeometryType = Dune::AxisAlignedCubeGeometry<Scalar, 2, dimWorld>;
GlobalPosition lowerLeftCube = upperRight; lowerLeftCube *= 0.4;
GlobalPosition upperRightCube = lowerLeftCube; upperRightCube[0] += 0.2*scaling; upperRightCube[1] += 0.2*scaling;
GeometryType cube(lowerLeftCube, upperRightCube);
GeometryType cube = [&]()
{
if constexpr (dimWorld == 2)
return GeometryType(lowerLeftCube, upperRightCube);
else
{
std::bitset<dimWorld> axes;
axes.set(0); axes.set(1);
return GeometryType(lowerLeftCube, upperRightCube, axes);
}
}();
using GeometriesEntitySet = Dumux::GeometriesEntitySet<GeometryType>;
GeometriesEntitySet entitySet(std::vector<GeometryType>{cube});
Dumux::BoundingBoxTree<GeometriesEntitySet> geometriesTree(std::make_shared<GeometriesEntitySet>(entitySet));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment