Skip to content

Commit

Permalink
Adjust KIND declaration for GCC13.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
kopperp committed May 23, 2023
1 parent 7fd3942 commit 11609d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/piclas.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
#define UNLOCK_AND_FREE(a) UNLOCK_AND_FREE_DUMMY(a,'a')

#ifdef GNU
#define CHECKSAFEINT(x,k) IF(x>HUGE(1_ k).OR.x<-HUGE(1_ k)) CALL ABORT(__STAMP__,'Integer KIND=k conversion failed: out of range!')
#define CHECKSAFEREAL(x,k) IF(x>HUGE(1._ k).OR.x<-HUGE(1._ k)) CALL ABORT(__STAMP__,'Real KIND=k conversion failed: out of range!')
#define CHECKSAFEINT(x,k) IF(x>HUGE(INT( 1,KIND=k)).OR.x<-HUGE(INT( 1,KIND=k))) CALL ABORT(__STAMP__,'Integer conversion failed: out of range!')
#define CHECKSAFEREAL(x,k) IF(x>HUGE(REAL(1,KIND=k)).OR.x<-HUGE(REAL(1,KIND=k))) CALL ABORT(__STAMP__,'Real conversion failed: out of range!')
#elif CRAY
#define CHECKSAFEINT(x,k)
#define CHECKSAFEREAL(x,k)
Expand Down

0 comments on commit 11609d5

Please sign in to comment.