Skip to content

Commit

Permalink
Check volume refined cell is positive
Browse files Browse the repository at this point in the history
  • Loading branch information
aritorto committed Dec 20, 2024
1 parent 14d1a50 commit e714fe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/cpgrid/addLgrsOnDistributedGrid_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void refinePatch_and_check(Dune::CpGrid& coarse_grid,
BOOST_CHECK(childElem.hasFather() == true);
BOOST_CHECK(childElem.level() == lgr);
referenceElemOneParent_volume += childElem.geometryInFather().volume();
BOOST_CHECK( childElem.geometryInFather().volume() > 0 );
for (int c = 0; c < 3; ++c) {
referenceElem_entity_center[c] += (childElem.geometryInFather().center())[c];
}
Expand Down

0 comments on commit e714fe4

Please sign in to comment.