Skip to content

Commit

Permalink
Merge pull request #139 from Goddard-Fortran-Ecosystem/hotfix/mathomp…
Browse files Browse the repository at this point in the history
…4/mpilock-issue

Revert use of c_bool in MpiLock.F90
  • Loading branch information
mathomp4 authored Feb 6, 2025
2 parents d20ac8a + aac07e1 commit 4e08f88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# ------------------------------------------------------------------------ #
cmake_minimum_required (VERSION 3.12)
project (PFLOGGER
VERSION 1.16.0
VERSION 1.16.1
LANGUAGES Fortran)

set (CMAKE_MODULE_PATH
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.16.1] - 2025-02-06

### Fixed

- Reverted use of `c_bool` in `MpiLock.F90`. Was causing issues with some compiler/MPI combinations.

## [1.16.0] - 2025-02-03

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/MpiLock.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module PFL_MpiLock
use PFL_Exception
use PFL_AbstractLock
use iso_fortran_env, only: INT64
use iso_c_binding, only: c_ptr, c_f_pointer, c_bool
use iso_c_binding, only: c_ptr, c_f_pointer
implicit none
private

Expand Down Expand Up @@ -90,7 +90,7 @@ subroutine init(this, rc)
if (this%rank == 0) then

block
logical(kind=C_BOOL), pointer :: scratchpad(:)
logical, pointer :: scratchpad(:)
integer :: sizeof_logical

call MPI_Type_extent(MPI_LOGICAL, sizeof_logical, status)
Expand Down Expand Up @@ -210,7 +210,7 @@ subroutine destroy(this, rc)
class (MpiLock), intent(inout) :: this
integer, optional, intent(out) :: rc

logical(kind=C_BOOL), pointer :: scratchpad(:)
logical, pointer :: scratchpad(:)
integer :: status

! Release resources
Expand Down

0 comments on commit 4e08f88

Please sign in to comment.