forked from CESM-Development/cime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial fix for incorrect type of 'mpi_type' in pioc_support.c
The type for mpi_type in the routines inq_file_metadata and PIOc_openfile_retry in pioc_support.c is int but should be MPI_Datatype because mpi_type is used in calls to, e.g., MPI_Type_size (https://www.open-mpi.org/doc/v2.0/man3/MPI_Type_size.3.php). In most implementations of MPI, the size of MPI_Datatype is the same as the size of int, but in some versions of OpenMPI, MPI_Datatype actually has a size of 8. This leads to memory errors and segfaults in PIO.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters