Skip to content

Commit

Permalink
Update and rename zfp_fct_wrapper.f90 to zfp_fct_wrapper.F90
Browse files Browse the repository at this point in the history
preprocessing for real kind
  • Loading branch information
ofmla authored Apr 22, 2024
1 parent 4b1ed49 commit 37bb96e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions zfp_fct_wrapper.f90 → zfp_fct_wrapper.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ module zfp_fct_wrapper
implicit none
private

integer,parameter,public :: wp = real64
#ifdef REAL32
integer, parameter, public :: zfp_fct_rk = real32 !! real kind used by this module [4 bytes]
#elif REAL64
integer, parameter, public :: zfp_fct_rk = real64 !! real kind used by this module [8 bytes]
#else
integer, parameter, public :: zfp_fct_rk = real64 !! real kind used by this module [8 bytes]
#endif

integer, parameter, public :: wp = zfp_fct_rk
public :: compress, decompress

contains
Expand Down Expand Up @@ -146,4 +154,4 @@ subroutine decompress(buffer, outdata, tolerance, precision, rate, parallel)
call zFORp_stream_close(zfp)
call zFORp_bitstream_stream_close(stream)
end subroutine decompress
end module zfp_fct_wrapper
end module zfp_fct_wrapper

0 comments on commit 37bb96e

Please sign in to comment.