Skip to content

Elem::_children should be a unique_ptr to an array of Elem*#3334

Merged
jwpeterson merged 1 commit intolibMesh:develfrom
jwpeterson:elem_children_unique_ptr
Jul 6, 2022
Merged

Elem::_children should be a unique_ptr to an array of Elem*#3334
jwpeterson merged 1 commit intolibMesh:develfrom
jwpeterson:elem_children_unique_ptr

Conversation

@jwpeterson
Copy link
Copy Markdown
Member

  • The Elem class is no longer manually mangaging any memory
  • Default the Elem destructor

libmesh_assert_equal_to (this->refinement_flag(), Elem::COARSEN_INACTIVE);
libmesh_assert (!this->active());

// We no longer delete children until MeshRefinement::contract()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep this comment in? Or we could lengthen it to talk about subactive elements. But either way it's expressing something that's important, not intuitive, and not explicit in the code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point. It got swept up in my removal of the line below.

* The Elem class is no longer manually mangaging any memory
* Default the Elem destructor
@jwpeterson jwpeterson force-pushed the elem_children_unique_ptr branch from 13d9755 to dac2e95 Compare July 6, 2022 16:25
@moosebuild
Copy link
Copy Markdown

Job Coverage on dac2e95 wanted to post the following:

Coverage

6cd1a3 #3334 dac2e9
Total Total +/- New
Rate 55.72% 55.72% -0.00% 100.00%
Hits 44899 44883 -16 8
Misses 35674 35667 -7 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

@jwpeterson jwpeterson merged commit 3929cb6 into libMesh:devel Jul 6, 2022
@jwpeterson jwpeterson deleted the elem_children_unique_ptr branch July 6, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants