Skip to content

Commit 4e08f88

Browse files
authored
Merge pull request #139 from Goddard-Fortran-Ecosystem/hotfix/mathomp4/mpilock-issue
Revert use of c_bool in MpiLock.F90
2 parents d20ac8a + aac07e1 commit 4e08f88

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# ------------------------------------------------------------------------ #
2121
cmake_minimum_required (VERSION 3.12)
2222
project (PFLOGGER
23-
VERSION 1.16.0
23+
VERSION 1.16.1
2424
LANGUAGES Fortran)
2525

2626
set (CMAKE_MODULE_PATH

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.16.1] - 2025-02-06
11+
12+
### Fixed
13+
14+
- Reverted use of `c_bool` in `MpiLock.F90`. Was causing issues with some compiler/MPI combinations.
15+
1016
## [1.16.0] - 2025-02-03
1117

1218
### Added

src/MpiLock.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module PFL_MpiLock
66
use PFL_Exception
77
use PFL_AbstractLock
88
use iso_fortran_env, only: INT64
9-
use iso_c_binding, only: c_ptr, c_f_pointer, c_bool
9+
use iso_c_binding, only: c_ptr, c_f_pointer
1010
implicit none
1111
private
1212

@@ -90,7 +90,7 @@ subroutine init(this, rc)
9090
if (this%rank == 0) then
9191

9292
block
93-
logical(kind=C_BOOL), pointer :: scratchpad(:)
93+
logical, pointer :: scratchpad(:)
9494
integer :: sizeof_logical
9595

9696
call MPI_Type_extent(MPI_LOGICAL, sizeof_logical, status)
@@ -210,7 +210,7 @@ subroutine destroy(this, rc)
210210
class (MpiLock), intent(inout) :: this
211211
integer, optional, intent(out) :: rc
212212

213-
logical(kind=C_BOOL), pointer :: scratchpad(:)
213+
logical, pointer :: scratchpad(:)
214214
integer :: status
215215

216216
! Release resources

0 commit comments

Comments
 (0)