Class for 1d linear interpolation.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | private, | dimension(:), allocatable | :: | f | |||
real(kind=wp), | private, | dimension(:), allocatable | :: | x | |||
integer, | private | :: | ilox | = | 1 |
Finalizer for a linear_interp_1d type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(linear_interp_1d), | intent(inout) | :: | me |
Constructor for a linear_interp_1d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_1d), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(:) | :: | x | ||
real(kind=wp), | intent(in), | dimension(:) | :: | f | ||
integer, | intent(out) | :: | istat |
|
1D linear interpolation routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_1d), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | x | |||
real(kind=wp), | intent(out) | :: | f |
Interpolated |
||
integer, | intent(out), | optional | :: | istat |
|
Destructor for a linear_interp_1d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_1d), | intent(inout) | :: | me |
type,extends(linear_interp_class),public :: linear_interp_1d !! Class for 1d linear interpolation. private real(wp),dimension(:),allocatable :: f real(wp),dimension(:),allocatable :: x integer :: ilox = 1 contains private procedure,public :: initialize => initialize_1d procedure,public :: evaluate => interp_1d procedure,public :: destroy => destroy_1d final :: finalize_1d end type linear_interp_1d