Neko  0.9.0
A portable framework for high-order spectral element flow simulations
interpolation Module Reference

Routines to interpolate between different spaces.

Data Types

type  interpolator_t
 Interpolation between two space::space_t. More...
 

Functions/Subroutines

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...
 

Function/Subroutine Documentation

◆ interpolator_free()

subroutine interpolation::interpolator_free ( class(interpolator_t), intent(inout)  this)
private

Definition at line 130 of file interpolation.f90.

Here is the call graph for this function:

◆ 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
XhThe first space.
XhThe second space.

Definition at line 86 of file interpolation.f90.

Here is the call graph for this function:

◆ 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
xOriginal array.
yInterpolated array.
nelNumber of elements in the mesh.
to_spaceThe space to interpolate to, must be either Xh or Yh.

Definition at line 165 of file interpolation.f90.

Here is the call graph for this function:

◆ 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
xOriginal array.
yInterpolated array.
nelNumber of elements in the mesh.
to_spaceThe 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.

Here is the call graph for this function: