Class for 2d nearest neighbor interpolation.
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 |
|
Destructor for a linear_interp_2d class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(linear_interp_2d), | intent(inout) | :: | me |
2D nearest neighbor interpolation routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(nearest_interp_2d), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | x | |||
real(kind=wp), | intent(in) | :: | y | |||
real(kind=wp), | intent(out) | :: | f |
Nearest |
||
integer, | intent(out), | optional | :: | istat |
|
type,extends(linear_interp_2d),public :: nearest_interp_2d !! Class for 2d nearest neighbor interpolation. contains procedure,public :: evaluate => nearest_2d end type nearest_interp_2d