Discontinuous Galerkin Library
#include "dg/algorithm.h"
interpolation.h File Reference

1D, 2D and 3D interpolation matrix creation functions More...

#include <cusp/coo_matrix.h>
#include <cusp/csr_matrix.h>
#include "dg/backend/typedefs.h"
#include "grid.h"
#include "evaluation.h"
#include "functions.h"
#include "operator_tensor.h"
#include "xspacelib.h"

Go to the source code of this file.

Namespaces

namespace  dg
 This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library.
 
namespace  dg::create
 Contains functions used for matrix creation.
 

Functions

template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const thrust::host_vector< real_type > &x, const RealGrid1d< real_type > &g, dg::bc bcx=dg::NEU, std::string method="dg")
 Create interpolation matrix. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const thrust::host_vector< real_type > &x, const thrust::host_vector< real_type > &y, const aRealTopology2d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU, std::string method="dg")
 Create interpolation matrix. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const thrust::host_vector< real_type > &x, const thrust::host_vector< real_type > &y, const thrust::host_vector< real_type > &z, const aRealTopology3d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU, dg::bc bcz=dg::PER, std::string method="dg")
 Create interpolation matrix. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const RealGrid1d< real_type > &g_new, const RealGrid1d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const aRealTopology2d< real_type > &g_new, const aRealTopology2d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const aRealTopology3d< real_type > &g_new, const aRealTopology3d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
cusp::coo_matrix< int, real_type, cusp::host_memory > dg::create::interpolation (const aRealTopology3d< real_type > &g_new, const aRealTopology2d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
real_type dg::interpolate (dg::space sp, const thrust::host_vector< real_type > &v, real_type x, const RealGrid1d< real_type > &g, dg::bc bcx=dg::NEU)
 Interpolate a vector on a single point on a 1d Grid. More...
 
template<class real_type >
real_type dg::interpolate (dg::space sp, const thrust::host_vector< real_type > &v, real_type x, real_type y, const aRealTopology2d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU)
 Interpolate a vector on a single point on a 2d Grid. More...
 

Detailed Description

1D, 2D and 3D interpolation matrix creation functions