Routines to interpolate between different spaces.
|
subroutine | interpolator_init (this, Xh, Yh) |
| Constructor to initialize with two different spaces. More...
|
|
subroutine | interpolator_free (this) |
|
subroutine | interpolator_map (this, y, x, nel, to_space) |
| Interpolates an array to one of Xh or Yh. More...
|
|
subroutine | interpolator_map_host (this, y, x, nel, to_space) |
| Interpolates an array to one of Xh or Yh on host. More...
|
|
◆ interpolator_free()
subroutine interpolation::interpolator_free |
( |
class(interpolator_t), intent(inout) |
this | ) |
|
|
private |
◆ interpolator_init()
subroutine interpolation::interpolator_init |
( |
class(interpolator_t), intent(inout), target |
this, |
|
|
type(space_t), intent(inout), target |
Xh, |
|
|
type(space_t), intent(inout), target |
Yh |
|
) |
| |
- Parameters
-
Xh | The first space. |
Xh | The second space. |
Definition at line 86 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(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. |
Definition at line 165 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 191 of file interpolation.f90.