-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
[BUG]: Interior facet integrals give differing values in serial and in parallel #3501
Comments
You need to change the Something like
will fix the issue. |
Setting the ghost mode to shared facet doesn't change the results of the above script. In fact, shared_facet is the default ghost mode for create_unit_square, as listed in the docs |
Well, then you need something similar to https://fenicsproject.discourse.group/t/consistent-side-of-interior-boundaries-with-dolfinx/15968/2 . |
The |
So in light of that, we're OK if the results of an integral involving an n("+") term change with the number of MPI processes? I guess that makes sense given this wouldn't affect an actual DG scheme (which this is not). Which would make this not a bug, because we give no guarantees about the choice between +/- or that choice remaining stable across different numbers of processes. Might be worth including some sort of warning about this in the docs. |
I have written up a demo that illustrates how to do custom orientation of jumps at: |
Summarize the issue
When assembling a vector from an interior facet integral, the vector sum and norm change with the number of MPI processes. While mesh partitioning does affect the order of degrees of freedom, it shouldn't change these aggregate metrics.
How to reproduce the bug
Within the Docker image
dolfinx/dolfinx:stable
, I ran the MWE in parallel with varying numbers of processesMinimal Example (Python)
Output (Python)
Version
0.9.0
DOLFINx git commit
4116cca
Installation
Used the docker image
dolfinx/dolfinx:stable
Additional information
Manual inspection of some of the vector entries indicates that the absolute value is correct, but the sign is flipped. However, as the mismatch in norm values indicates, that's not the only issue. This issue doesn't appear for exterior facet or cell integral types. I suspect the issue may have something to do with how the ordering of cells corresponding to a given facet changes in parallel, but am not sure yet.
The text was updated successfully, but these errors were encountered: