Skip to content

Commit

Permalink
test gfortran 13
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Sep 7, 2023
1 parent 65d4ee0 commit 19372f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test_gfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
matrix:
os: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, windows-latest, windows-2019]
compiler: [gcc]
version: [12, 11, 10, 9]
version: [13, 12, 11, 10]
exclude:
- os: ubuntu-20.04
version: 12
- os: ubuntu-20.04
version: 13

steps:
- name: Checkout repository
Expand Down
12 changes: 6 additions & 6 deletions infnan.f90
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ module infnan_mod
! (X <= HUGE(X) .AND. X >= -HUGE(X)) may differ from (ABS(X) <= HUGE(X)) ,
! (X > HUGE(X) .OR. X < -HUGE(X)) may differ from (ABS(X) > HUGE(X)) , and
! (ABS(X) > HUGE(X) .AND. X > 0) may differ from (X > HUGE(X)) .
!
! 5. is_nan must be implemented in a file separated from is_inf and is_finite. Otherwise, is_nan may
! not work with some compilers invoked with agressive optimization flags e.g., ifx -fast with
! ifx 2022.1.0 or flang -Ofast with flang 15.0.3.
!
! 5. is_nan must be implemented in a file separated from is_inf and is_finite. Otherwise, is_nan may
! not work with some compilers invoked with aggressive optimization flags e.g., ifx -fast with
! ifx 2022.1.0 or flang -Ofast with flang 15.0.3.
!
! 6. Even though the functions involve invocation of ABS and HUGE, their performance (in terms of
! CPU time) turns out comparable to or even better than the functions in `ieee_arithmetic`.
Expand All @@ -40,7 +40,7 @@ module infnan_mod

elemental pure function is_nan_sp(x) result(y)
use consts_mod, only : SP
use inf_mod, only: is_finite, is_inf
use inf_mod, only : is_finite, is_inf
implicit none
real(SP), intent(in) :: x
logical :: y
Expand All @@ -50,7 +50,7 @@ end function is_nan_sp

elemental pure function is_nan_dp(x) result(y)
use consts_mod, only : DP
use inf_mod, only: is_finite, is_inf
use inf_mod, only : is_finite, is_inf
implicit none
real(DP), intent(in) :: x
logical :: y
Expand Down

0 comments on commit 19372f3

Please sign in to comment.