-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added specification of real kinds via preprocessor
- Loading branch information
1 parent
e581804
commit a11a9ed
Showing
2 changed files
with
32 additions
and
22 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,32 @@ | ||
!*************************************************************************************************** | ||
!> | ||
! Module for LSQR kinds and parameters | ||
! | ||
!### History | ||
! * Jacob Williams : 8 Nov 2019 : created module | ||
|
||
module lsqr_kinds | ||
|
||
use iso_fortran_env | ||
|
||
implicit none | ||
|
||
private | ||
|
||
#ifdef REAL32 | ||
integer,parameter,public :: wp = real32 !! default real kind [4 bytes] | ||
#elif REAL64 | ||
integer,parameter,public :: wp = real64 !! default real kind [8 bytes] | ||
#elif REAL128 | ||
integer,parameter,public :: wp = real128 !! default real kind [16 bytes] | ||
#else | ||
integer,parameter,public :: wp = real64 !! default real kind [8 bytes] | ||
#endif | ||
|
||
! parameters: | ||
real(wp),parameter,public :: zero = 0.0_wp | ||
real(wp),parameter,public :: one = 1.0_wp | ||
|
||
!*************************************************************************************************** | ||
end module lsqr_kinds | ||
!*************************************************************************************************** |
This file was deleted.
Oops, something went wrong.