Skip to content

Commit

Permalink
Move from spread to reshape in MockMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed May 17, 2024
1 parent 51b33cf commit bbc88f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Change use of `spread` in `MockMPI.F90` initialization to `reshape` to avoid NVHPC issue

## [1.14.0] - 2024-03-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/MockMpi.F90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module mpi

integer, parameter :: MPI_ADDRESS_KIND = INT64
integer, parameter :: MPI_STATUS_SIZE = 6
integer, parameter :: MPI_STATUS_IGNORE(MPI_STATUS_SIZE) = spread(0, dim=1, ncopies=MPI_STATUS_SIZE)
integer, parameter :: MPI_STATUS_IGNORE(MPI_STATUS_SIZE) = reshape([0], shape=[MPI_STATUS_SIZE], pad=[0])
integer, parameter :: MPI_LOGICAL = 9
integer, parameter :: MPI_SUCCESS = 0
integer, parameter :: MPI_INFO_NULL = 0
Expand Down

0 comments on commit bbc88f6

Please sign in to comment.