Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for latest deal.II master: support cell_weight #5251

Merged
merged 1 commit into from Jul 10, 2023

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented Jul 10, 2023

No description provided.

@tjhei
Copy link
Member Author

tjhei commented Jul 10, 2023

needs to go into 2.5

#if DEAL_II_VERSION_GTE(9,6,0)
unsigned int
cell_weight(const typename parallel::distributed::Triangulation<dim>::cell_iterator &cell,
const CellStatus status);
Copy link
Contributor

@tamiko tamiko Jul 10, 2023

Choose a reason for hiding this comment

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

mhm This is less than ideal. I think we could meaningfully alleviate the issue by providing a deprecated using declaration within our Triangulation classes in deal.II. Would that help?

case CellStatus::children_will_be_coarsened:
for (const auto &child : cell->child_iterators())
n_particles_in_cell += particle_handler->n_particles_in_cell(child);
break;
Copy link
Contributor

@tamiko tamiko Jul 10, 2023

Choose a reason for hiding this comment

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

Same here. I don't think it would hurt to make the names available again via using declarations or similar trickery.

@bangerth
Copy link
Contributor

@tamiko That will provide a temporary fix that would have avoided the immediate breakage. But in the long run, @tjhei's changes are necessary anyway.

@tjhei
Copy link
Member Author

tjhei commented Jul 10, 2023

It's still necessary to avoid deprecation warnings.

gassmoeller added a commit that referenced this pull request Jul 10, 2023
[2.5] take over #5251: fix for latest deal.II master: support cell_weight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants