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
p:d:GridRefinement: accept other types of triangulations #14072
p:d:GridRefinement: accept other types of triangulations #14072
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a dynamic_cast
check for parallel::DistributedTriangulationBase
?
For Triangulation
and parallel::shared::Triangulation
we have the normal GridRefinement
namespace.
As far as I see it, the functions are working for any triangulation. So I don't want to add a check. Furthermore, I see this more as a first step to move make these functions part of the normal namespace. |
Yes, they should work for any Triangulation. I use some of the functionality also in the |
|
fb14a91
to
31c72b0
Compare
I assume you want to use this functionality in the context of |
No that one is unrelated. |
refine_and_coarsen_fixed_number( | ||
parallel::distributed::Triangulation<dim, spacedim> &tria, | ||
const dealii::Vector<Number> & criteria, | ||
Triangulation<dim, spacedim> & tria, | ||
const dealii::Vector<Number> & criteria, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial comment of this function still says Like dealii::GridRefinement::refine_and_coarsen_fixed_number, but for parallel distributed triangulations.
- I am wondering if we can use a simpler-to-recognize name, e.g. Like dealii::GridRefinement::refine_and_coarsen_fixed_number, but designed for parallel computations.
Together with the rest of the description, this would seem to be more accurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am have made the changes. I also have added the information what parallel means here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise.
31c72b0
to
3450abc
Compare
FYI @mschreter