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