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