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
Generalize DoFHandlerPolicy of p:d:t #8579
Generalize DoFHandlerPolicy of p:d:t #8579
Conversation
fc58308
to
664a515
Compare
@masterleinad Could I ask you for a favor? Could you add |
664a515
to
75b2042
Compare
The
|
75b2042
to
660234c
Compare
@masterleinad Thanks a lot! I had a look at the failing tests. These are tests directly messing with |
@@ -0,0 +1,4 @@ | |||
New: Generalize DoFHandlerPolicy of p:d:t such that it uses |
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.
Please spell out the names properly to have doxygen pick them up.
@@ -0,0 +1,3 @@ | |||
New: Add method to get the coarse-grid cell from CellID. | |||
<br> | |||
(Peter Munch, 2019/08/15) |
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.
You want to drop this commit from this pull request.
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.
@bangerth I have drop it.
660234c
to
25410d2
Compare
25410d2
to
d8ddd6b
Compare
include/deal.II/distributed/tria.h
Outdated
@@ -1217,6 +1217,16 @@ namespace parallel | |||
std::vector<bool> | |||
mark_locally_active_vertices_on_level(const int level) const; | |||
|
|||
virtual unsigned int | |||
translate_coarse_cell_id_to_coarse_cell_index( | |||
const unsigned int coarse_cell_id) const override; |
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.
Didn't you rename this in some other PR to drop the translate_
prefix? I actually like the prefix, but I think @tjhei didn't.
You'll also want to use the new data type for coarse cell ids 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.
@bangerth I also prefer the translate_
prefix because it indicates that it is a method. However, I have made this PR now consistent with the previous PRs.
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.
Let's go with this then. I wouldn't mind if you had a follow-up PR that changes the name back again. It should be easy to do with find-replace.
d8ddd6b
to
2bea866
Compare
/rebuild |
It seems that you either need to rebase or add a missing header. |
@masterleinad: You are right. This PR will compile once #8567 and #8586 have been merged, and I have rebased this branch. |
I added the |
2bea866
to
e764517
Compare
@tjhei @masterleinad @bangerth I have rebased this branch! |
Great! |
This PR is part of the effort to introduce the new
parallel::fullydistributed::Triangulation
(see #8558) and is a follow-up to PR #8586.In this PR, I eliminate the direct usage of
coarse_cell_to_p4est_tree_permutation
andp4est_tree_to_coarse_cell_permutation
int theDoFHandlerPolicy
ofp:d:t
. The translation is moved inside oftranslate_coarse_cell_id_to_coarse_cell_index
andtranslate_coarse_cell_index_to_coarse_cell_id
ofp:d:t
, since it is ap:d:t
-specific thing and is independent from the policy.Ping: @bangerth @tjhei