diff --git a/CHANGELOG.md b/CHANGELOG.md index b4f2b85ad0a..a23bf1aad35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated +## [2.64.1] - 2025-12-30 + +### Fixed + +- Restore workaround for binary restart reads with GNU + - Brings back changes from PR #1038: Added a workaround for a gfortran bug that handles end-of-file incorrectly (returns IOSTAT=5001). + ## [2.64.0] - 2025-12-05 ### Added diff --git a/CMakeLists.txt b/CMakeLists.txt index af1adf84c3e..6e3e4c9fc36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ endif () project ( MAPL - VERSION 2.64.0 + VERSION 2.64.1 LANGUAGES Fortran CXX C) # Note - CXX is required for ESMF # Set the possible values of build type for cmake-gui diff --git a/base/BinIO.F90 b/base/BinIO.F90 index 74d2ff787f7..9f43acbbe6a 100644 --- a/base/BinIO.F90 +++ b/base/BinIO.F90 @@ -598,6 +598,12 @@ subroutine MAPL_FieldRead(UNIT,FIELD, ARRDES, HomePE, ignoreEOF, RC) call MAPL_CommsBcast(layout, status, n=1, ROOT=MAPL_Root, rc=stat) _VERIFY(STAT) +#ifdef __GFORTRAN__ + if (status == 5001) then + _RETURN(ESMF_SUCCESS) + end if +#endif + if (status == IOSTAT_END) then _RETURN(ESMF_SUCCESS) end if