Discontinuous Galerkin Library
#include "dg/algorithm.h"
projectionX.h
Go to the documentation of this file.
1#pragma once
2#include "projection.h"
3#include "gridX.h"
4
9namespace dg{
12namespace create{
13
15template<class real_type>
16cusp::coo_matrix< int, real_type, cusp::host_memory> projection( const RealGridX1d<real_type>& g_new, const RealGridX1d<real_type>& g_old,std::string method = "dg") {
17 return projection(g_new.grid(), g_old.grid(),method);
18}
19
21template<class real_type>
22cusp::coo_matrix< int, real_type, cusp::host_memory> projection( const aRealTopologyX2d<real_type>& g_new, const aRealTopologyX2d<real_type>& g_old,std::string method = "dg") {
23 return projection(g_new.grid(), g_old.grid(),method);
24}
25
27template<class real_type>
28cusp::coo_matrix< int, real_type, cusp::host_memory> projection( const aRealTopologyX3d<real_type>& g_new, const aRealTopologyX3d<real_type>& g_old,std::string method = "dg") {
29 return projection(g_new.grid(), g_old.grid(),method);
30}
31
33
34}//namespace create
35}//namespace dg
base X-point topology classes
dg::MIHMatrix_t< real_type > projection(const aRealMPITopology2d< real_type > &g_new, const aRealMPITopology2d< real_type > &g_old, std::string method="dg")
Create a projection between two grids.
Definition: mpi_projection.h:247
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...
Creation of projection matrices.
1D grid for X-point topology
Definition: gridX.h:68
RealGrid1d< real_type > grid() const
Definition: gridX.h:185
A 2D grid class with X-point topology.
Definition: gridX.h:257
RealGrid2d< real_type > grid() const
Return a copy without topology.
Definition: gridX.h:382
A 3D grid class with X-point topology.
Definition: gridX.h:541
RealGrid3d< real_type > grid() const
Return a copy without topology.
Definition: gridX.h:705