Skip to content

refactor to use MPI_HANDLE_KIND only in mpi_c_bindings.f90 #112

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

Merged
merged 1 commit into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/mpi.f90
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
module mpi
use mpi_c_bindings, only: MPI_HANDLE_KIND
implicit none

#ifdef OPEN_MPI
#define MPI_HANDLE_KIND 8
#else
#define MPI_HANDLE_KIND 4
#endif

integer, parameter :: MPI_THREAD_FUNNELED = 1

integer, parameter :: MPI_INTEGER = -10002
Expand Down
1 change: 1 addition & 0 deletions src/mpi_c_bindings.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module mpi_c_bindings
#define MPI_HANDLE_KIND 4
#endif

integer, parameter :: mpi_handle_kind = MPI_HANDLE_KIND
type(c_ptr), bind(C, name="c_MPI_STATUSES_IGNORE") :: c_mpi_statuses_ignore
type(c_ptr), bind(C, name="c_MPI_IN_PLACE") :: c_mpi_in_place
integer(kind=MPI_HANDLE_KIND), bind(C, name="c_MPI_INFO_NULL") :: c_mpi_info_null
Expand Down