-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
specify real kind via preprocessor directive
- Loading branch information
1 parent
70364c3
commit d6d05e4
Showing
2 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
!***************************************************************************************** |
This file was deleted.
Oops, something went wrong.