Discontinuous Galerkin Library
#include "dg/algorithm.h"
weightsX.h
Go to the documentation of this file.
1#pragma once
2
3#include "weights.h"
4#include "gridX.h"
5
12namespace dg{
13namespace create{
14
17
19template<class real_type>
20thrust::host_vector<real_type> weights( const dg::RealGridX1d<real_type>& g) { return weights( g.grid()); }
22template<class real_type>
23thrust::host_vector<real_type> inv_weights( const RealGridX1d<real_type>& g) { return inv_weights( g.grid()); }
24
26template<class real_type>
27thrust::host_vector<real_type> weights( const aRealTopologyX2d<real_type>& g) { return weights( g.grid()); }
29template<class real_type>
30thrust::host_vector<real_type> inv_weights( const aRealTopologyX2d<real_type>& g) { return inv_weights( g.grid()); }
31
33template<class real_type>
34thrust::host_vector<real_type> weights( const aRealTopologyX3d<real_type>& g) { return weights(g.grid()); }
35
37template<class real_type>
38thrust::host_vector<real_type> inv_weights( const aRealTopologyX3d<real_type>& g) { return inv_weights(g.grid()); }
39
41}//namespace create
42}//namespace dg
base X-point topology classes
MPI_Vector< thrust::host_vector< real_type > > weights(const aRealMPITopology2d< real_type > &g)
Nodal weight coefficients.
Definition: mpi_weights.h:22
MPI_Vector< thrust::host_vector< real_type > > inv_weights(const aRealMPITopology2d< real_type > &g)
inverse nodal weight coefficients
Definition: mpi_weights.h:29
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...
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
Creation functions for integration weights and their inverse.