-
Notifications
You must be signed in to change notification settings - Fork 7
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: generalize hard-coded Cint
to MPI_Comm
in t8_forest_get_mpicomm
.
#78
Conversation
Looks good. Does this mean that executing |
This reminds me of the following error: https://github.com/trixi-framework/Trixi.jl/actions/runs/12182527496/job/33981760954?pr=1844#step:7:11266. Could this be similar? It fails here: Lines 17842 to 17848 in 73877de
To me the docstring looks like cmesh should be of type t8_cmesh_t and not of type CInt = UInt32 as indicated in the function call. Could this lead to the InexactError ?
|
Yes, indeed! |
I actually fixed this issue a while ago on t8code side. For whatever reason this fix gone. I adapted the Thanks for pointing that out! |
Ok, thanks! Is this fix actually gone in t8code or only in T8code.jl? If the latter (and your fix in t8code is included in the t8code version we currently wrap), we could (should?) investigate why it's not in T8code.jl. (If the former, you could maybe investigate why it's gone in t8code as it would be nice to not need a manual fix on the T8code.jl end.) |
Actually, my old fix was added to another file in t8code. The issue here was introduced in a new file. I pushed a fix upstream: But I recommend to merge this PR since the upstream fix won't be available soon and the fix here is idempotent to the fix upstream. |
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.
Thanks!
This patch generalizes the return value of
t8_forest_get_mpicomm
. This is crucial when using OpenMPI as system library. The MPI Communicator handle is not an integer but a pointer to a struct.Along the way, I also added other minor improvements.