Routines to interpolate between different spaces.
|
| subroutine | interpolator_init (this, xh, yh) |
| | Constructor to initialize with two different spaces.
|
| |
| subroutine | interpolator_free (this) |
| |
| subroutine | interpolator_map (this, y, x, nel, to_space) |
| | Interpolates an array to one of Xh or Yh.
|
| |
| subroutine | interpolator_map_host (this, y, x, nel, to_space) |
| | Interpolates an array to one of Xh or Yh on host.
|
| |
◆ interpolator_free()
◆ interpolator_init()
- Parameters
-
| Xh | The first space. |
| Xh | The second space. |
Definition at line 88 of file interpolation.f90.
◆ interpolator_map()
| subroutine interpolation::interpolator_map |
( |
class(interpolator_t), intent(inout) |
this, |
|
|
real(kind=rp), dimension(this%yh%lx, this%yh%lx, this%yh%lx, nel), intent(inout) |
y, |
|
|
real(kind=rp), dimension(this%xh%lx, this%xh%lx, this%xh%lx, nel), intent(in) |
x, |
|
|
integer |
nel, |
|
|
type(space_t) |
to_space |
|
) |
| |
|
private |
- Parameters
-
| x | Original array. |
| y | Interpolated array. |
| nel | Number of elements in the mesh. |
| to_space | The space to interpolate to, must be either Xh or Yh. |
Definition at line 167 of file interpolation.f90.
◆ interpolator_map_host()
| subroutine interpolation::interpolator_map_host |
( |
class(interpolator_t), intent(inout) |
this, |
|
|
real(kind=rp), dimension(this%yh%lx, this%yh%lx, this%yh%lx, nel), intent(inout) |
y, |
|
|
real(kind=rp), dimension(this%xh%lx, this%xh%lx, this%xh%lx, nel), intent(inout) |
x, |
|
|
integer |
nel, |
|
|
type(space_t) |
to_space |
|
) |
| |
|
private |
- Parameters
-
| x | Original array. |
| y | Interpolated array. |
| nel | Number of elements in the mesh. |
| to_space | The space to interpolate to, must be either Xh or Yh. |
- Note
- Not optimized for performance, should only be used during init.
Definition at line 193 of file interpolation.f90.