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

Useful MPI typedefs and overloads of interpolation and projection. More...

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 ConversionPolicy , class real_type >
dg::MIHMatrix_t< real_type > dg::convert (const dg::IHMatrix_t< real_type > &global, const ConversionPolicy &policy)
 Convert a (row-distributed) matrix with local row and global column indices to a row distributed MPI matrix. More...
 
template<class ConversionPolicy , class real_type >
dg::IHMatrix_t< real_type > dg::convertGlobal2LocalRows (const dg::IHMatrix_t< real_type > &global, const ConversionPolicy &policy)
 Convert a (column-distributed) matrix with global row and column indices to a row distributed matrix. More...
 
template<class ConversionPolicy , class real_type >
void dg::convertLocal2GlobalCols (dg::IHMatrix_t< real_type > &local, const ConversionPolicy &policy)
 Convert a matrix with local column indices to a matrix with global column indices. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::interpolation (const aRealMPITopology2d< real_type > &g_new, const aRealMPITopology2d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::interpolation (const aRealMPITopology3d< real_type > &g_new, const aRealMPITopology3d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::interpolation (const aRealMPITopology3d< real_type > &g_new, const aRealMPITopology2d< real_type > &g_old, std::string method="dg")
 Create interpolation between two grids. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::projection (const aRealMPITopology2d< real_type > &g_new, const aRealMPITopology2d< real_type > &g_old, std::string method="dg")
 Create a projection between two grids. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::projection (const aRealMPITopology3d< real_type > &g_new, const aRealMPITopology3d< real_type > &g_old, std::string method="dg")
 Create a projection between two grids. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > dg::create::interpolation (const thrust::host_vector< real_type > &x, const thrust::host_vector< real_type > &y, const aRealMPITopology2d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU, std::string method="dg")
 Create an MPI row distributed interpolation 2d matrix. More...
 
template<class real_type >
dg::MIHMatrix_t< real_type > 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 aRealMPITopology3d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU, dg::bc bcz=dg::PER, std::string method="linear")
 Create an MPI row distributed interpolation 3d matrix. More...
 

Detailed Description

Useful MPI typedefs and overloads of interpolation and projection.