diff --git a/src/kind_module.F90 b/src/kind_module.F90 new file mode 100644 index 0000000..f33a5ec --- /dev/null +++ b/src/kind_module.F90 @@ -0,0 +1,25 @@ +!***************************************************************************************** +!> author: Jacob Williams +! +! Define the numeric kinds. + + module kind_module + + use, intrinsic :: iso_fortran_env, only: real32,real64,real128 + + implicit none + + private + +#ifdef REAL32 + integer,parameter,public :: wp = real32 !! real kind used by this module [4 bytes] +#elif REAL64 + integer,parameter,public :: wp = real64 !! real kind used by this module [8 bytes] +#elif REAL128 + integer,parameter,public :: wp = real128 !! real kind used by this module [16 bytes] +#else + integer,parameter,public :: wp = real64 !! real kind used by this module [8 bytes] +#endif + + end module kind_module +!***************************************************************************************** diff --git a/src/kind_module.f90 b/src/kind_module.f90 deleted file mode 100644 index 8bc86a5..0000000 --- a/src/kind_module.f90 +++ /dev/null @@ -1,19 +0,0 @@ -!***************************************************************************************** -!> author: Jacob Williams -! -! Define the numeric kinds. - - module kind_module - - use, intrinsic :: iso_fortran_env, only: real32,real64,real128 - - implicit none - - private - - !integer,parameter,public :: wp = real32 !! single precision reals - integer,parameter,public :: wp = real64 !! double precision reals - !integer,parameter,public :: wp = real128 !! quad precision reals - - end module kind_module -!*****************************************************************************************