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

Routines to interpolate between different spaces. More...

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

Detailed Description

Routines to interpolate between different spaces.

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 
)

Constructor to initialize with two different spaces.

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(1,nel), intent(inout)  y,
real(kind=rp), dimension(1,nel), intent(inout)  x,
integer  nel,
type(space_t to_space 
)
private

Interpolates an array to one of Xh or Yh.

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(1,nel), intent(inout)  y,
real(kind=rp), dimension(1,nel), intent(inout)  x,
integer  nel,
type(space_t to_space 
)
private

Interpolates an array to one of Xh or Yh on host.

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: