29template<
class real_type>
58template<
class real_type>
61 return dx( g, g.
bcx(), dir);
72template<
class real_type>
99template<
class real_type>
base X-point topology classes
EllSparseBlockMat< real_type > dx(const aRealTopology2d< real_type > &g, bc bcx, direction dir=centered)
Create 2d derivative in x-direction.
Definition: derivatives.h:33
bc
Switch between boundary conditions.
Definition: enums.h:15
direction
Direction of a discrete derivative.
Definition: enums.h:97
@ PER
periodic boundaries
Definition: enums.h:16
@ centered
centered derivative (cell to the left and right and current cell)
Definition: enums.h:100
EllSparseBlockMat< real_type > jump(int n, int N, real_type h, bc bcx)
Create and assemble a host Matrix for the jump terms in 1d.
Definition: dx.h:310
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...
Ell Sparse Block Matrix format.
Definition: sparseblockmat.h:46
int blocks_per_line
number of blocks in each line
Definition: sparseblockmat.h:132
thrust::host_vector< int > cols_idx
is of size num_rows*num_blocks_per_line and contains the column indices % n into the vector
Definition: sparseblockmat.h:127
1D grid for X-point topology
Definition: gridX.h:68
unsigned inner_N() const
number of cells in the inner region
Definition: gridX.h:141
bc bcx() const
boundary conditions
Definition: gridX.h:153
unsigned outer_N() const
number of cells in one of the outer regions
Definition: gridX.h:135
unsigned N() const
number of cells
Definition: gridX.h:129
unsigned n() const
number of polynomial coefficients
Definition: gridX.h:147
real_type h() const
cell size
Definition: gridX.h:123
RealGrid1d< real_type > grid() const
Definition: gridX.h:185
Creation functions for integration weights and their inverse on X-point topology.