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
Add parallel test for find_active_cell_around_point #10747
Conversation
The function FYI @nfehn |
@peterrum That is right. The point is not in any of the active cells. But I do not understand why this worked before. In step-62 I used this function to find out if a point is in the locally owned cells. According to the documentation, this function will raise an exception only if the point does not lie inside any of the cells of the mesh.
I'm going to try to find out why the old version didn't raise an exception when the point does not lie in an active cell. @peterrum Is |
We have changed recently the behavior of the function(s) because it turned out that working internally with non-active cells was not a good idea. There is still a discussion how to deal with this changed behavior (see #10535). The documentation will be adjusted once we found a common ground.
You can do that. But what you need to do is to catch the exception to be on the safe side. |
Thanks @peterrum, I understand now :) I think that exceptions are quite inefficient for this. I will leave step-62 in a broken state until it has been decided what to do with this function. Then I will fix it. |
What's the status here? |
I'll update this once #11276 is in master :) |
@dangars Could you rebase this PR!? Thanks! |
/rebuild |
I rebased the test. I didn't have the time update the test. I'll try to find some time tomorrow to do it. |
@dangars Today would be the day to get it in before the release :-) |
Hi @bangerth, I didn't have time to finish the test, I guess that this will make it in deal.II 9.4 I pushed my last version of the test, something is not working. It shouldn't be difficult to find the problem, but I need a little bit more time. step-62 shows that I'll let you know when it is ready for review! FYI @luca-heltai |
Can you be more specific? In the meantime, I will check your version against the current master branch. If it runs smoothly, I will merge the test as is. |
I get errors of the following type:
|
You missed to include a header. I will push directly to your branch and rebase on the upstream master. The serial version of the test passes, but the parallel run with 7 processes still fails:
Can you have a look? |
3b671a6
to
d9237b2
Compare
Parallel test for find_active_cell_around_point()
d9237b2
to
52bc80f
Compare
I pushed a working version. |
Add parallel test for find_active_cell_around_point
The following test succeeds in serial (mpi = 1), but fails in parallel (mpi = 7). I think that it is related to #10478, but I'm not sure.
I get the following error with
find_active_cell_around_point()
:But the point <0 0> is in the coarse grid.
This is a follow-up from #10737