Skip to content

Commit

Permalink
Merge pull request #49 from fdrmrc/fix_dangling_pointer
Browse files Browse the repository at this point in the history
Fix issues with clang
  • Loading branch information
fdrmrc authored Dec 10, 2023
2 parents 0427841 + c6152d2 commit 2ca7a4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/polydeal/agglomerated_neighbors_01.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ main()
for (unsigned int f = 0; f < n_agglomerated_faces_per_cell; ++f)
{
std::cout << "Agglomerated face with idx: " << f << std::endl;
auto agglomerate_connectivity = ah.get_agglomerated_connectivity();
const auto &[local_face_idx, neigh, local_face_idx_out, dummy] =
ah.get_agglomerated_connectivity()[{cell, f}];
agglomerate_connectivity[{cell, f}];
{
std::cout << "Face idx: " << local_face_idx << std::endl;
if (neigh.state() == IteratorState::valid)
Expand Down
3 changes: 2 additions & 1 deletion test/polydeal/agglomerated_neighbors_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ main()
for (unsigned int f = 0; f < n_agglomerated_faces_per_cell; ++f)
{
std::cout << "Agglomerated face with idx: " << f << std::endl;
auto agglomerate_connectivity = ah.get_agglomerated_connectivity();
const auto &[local_face_idx, neigh, local_face_idx_out, dummy] =
ah.get_agglomerated_connectivity()[{cell, f}];
agglomerate_connectivity[{cell, f}];
{
std::cout << "Face idx: " << local_face_idx << std::endl;
if (neigh.state() == IteratorState::valid)
Expand Down

0 comments on commit 2ca7a4a

Please sign in to comment.