Skip to content
Snippets Groups Projects
Commit e182baf0 authored by Timo Koch's avatar Timo Koch
Browse files

[growth][test] Add a line querying the growthInsertionIndex

parent 45ad5526
No related branches found
No related tags found
1 merge request!15Feature/growth insertion index
......@@ -70,6 +70,13 @@ void checkGridElementGrowth(Grid& grid, int numElements)
if(!newElementGenerated)
DUNE_THROW(InvalidStateException,"grid.preGrow() does not return correct information");
// obtain growth insertion index of new elements
for (const auto& element : elements(grid.levelGridView(0)))
{
if (element.isNew())
std::cout << "After calling grow(): found new element with growth insertion index: " << grid.growthInsertionIndex(element) << std::endl;
}
grid.postGrow();
// Loop over all levels except the lowest one
......
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