-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathlsmrDataModule.f90
24 lines (20 loc) · 947 Bytes
/
lsmrDataModule.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! File lsmrDataModule.f90
!
! Defines real(dp) and a few constants for use in other modules.
!
! 24 Oct 2007: Allows floating-point precision dp to be defined
! in exactly one place (here). Note that we need
! use lsmrDataModule
! at the beginning of modules AND inside interfaces.
! zero and one are not currently used by LSMR,
! but this shows how they should be declared
! by a user routine that does need them.
! 16 Jul 2010: LSMR version derived from LSQR equivalent.
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
module lsmrDataModule
implicit none
intrinsic :: selected_real_kind
integer, parameter, public :: dp = selected_real_kind(4)
real(dp), parameter, public :: zero = 0.0_dp, one = 1.0_dp
end module lsmrDataModule