Skip to content
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 SUNDIALS Context construction for MPICH #2678

Merged
merged 11 commits into from
Apr 19, 2023
Merged

Fix SUNDIALS Context construction for MPICH #2678

merged 11 commits into from
Apr 19, 2023

Conversation

dschwoerer
Copy link
Contributor

Resolves #2677

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/solver/impls/arkode/arkode.cxx Outdated Show resolved Hide resolved
src/solver/impls/cvode/cvode.cxx Outdated Show resolved Hide resolved
src/solver/impls/ida/ida.cxx Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

`MPI_COMM_WORLD` can be int, thus pass the BOUT++ communicator

Co-authored-by: Peter Hill <peter.hill@york.ac.uk>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/solver/impls/arkode/arkode.cxx Show resolved Hide resolved
src/solver/impls/cvode/cvode.cxx Show resolved Hide resolved
src/solver/impls/ida/ida.cxx Show resolved Hide resolved
Do not take the address of the pointer. Compiles with mpich and openmpi
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

This is needed so we can get a pointer to the communicator, as is needed
by SUNContext
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

ZedThree
ZedThree previously approved these changes Mar 23, 2023
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@ZedThree
Copy link
Member

Did this change run on both MPICH and OpenMPI? If so, it can be merged right now, if not, please can someone test it? I guess this is one case where we definitely do want to test across multiple MPI implementations!

@ZedThree ZedThree changed the title Explicitly cast to void* Fix SUNDIALS Context construction for MPICH Apr 19, 2023
@ZedThree ZedThree merged commit 00ee409 into master Apr 19, 2023
@ZedThree ZedThree deleted the cast-sagitter branch April 19, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid conversion from 'MPI_Comm'
2 participants