Class for 3d 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 | |||
real(kind=wp), | private, | dimension(:), allocatable | :: | z | |||
integer, | private | :: | ilox | = | 1 | ||
integer, | private | :: | iloy | = | 1 | ||
integer, | private | :: | iloz | = | 1 |
Finalizer for a linear_interp_3d type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(linear_interp_3d), | intent(inout) | :: | me |
Constructor for a linear_interp_3d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_3d), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(:) | :: | x | ||
real(kind=wp), | intent(in), | dimension(:) | :: | y | ||
real(kind=wp), | intent(in), | dimension(:) | :: | z | ||
real(kind=wp), | intent(in), | dimension(:,:,:) | :: | f | ||
integer, | intent(out) | :: | istat |
|
3D linear interpolation routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_3d), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | x | |||
real(kind=wp), | intent(in) | :: | y | |||
real(kind=wp), | intent(in) | :: | z | |||
real(kind=wp), | intent(out) | :: | f |
Interpolated |
||
integer, | intent(out), | optional | :: | istat |
|
Destructor for a linear_interp_3d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_3d), | intent(inout) | :: | me |
type,extends(linear_interp_class),public :: linear_interp_3d !! Class for 3d linear interpolation. private real(wp),dimension(:,:,:),allocatable :: f real(wp),dimension(:),allocatable :: x real(wp),dimension(:),allocatable :: y real(wp),dimension(:),allocatable :: z integer :: ilox = 1 integer :: iloy = 1 integer :: iloz = 1 contains private procedure,public :: initialize => initialize_3d procedure,public :: evaluate => interp_3d procedure,public :: destroy => destroy_3d final :: finalize_3d end type linear_interp_3d