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