31template<
class Geometry,
class Matrix,
class Container >
73 template<
class ContainerType0,
class ContainerType1,
class ContainerType2>
74 void operator()(
const ContainerType0& lhs,
const ContainerType1& rhs, ContainerType2& result);
81 template<
class ContainerType0>
82 void set_chi(
const ContainerType0& new_chi) {
123 Container m_dxlhslhs, m_dxrhsrhs, m_dylhslhs, m_dyrhsrhs, m_helper;
124 Matrix m_dxlhs, m_dylhs, m_dxrhs, m_dyrhs;
131template<
class Geometry,
class Matrix,
class Container>
135template<
class Geometry,
class Matrix,
class Container>
139template<
class Geometry,
class Matrix,
class Container>
141 m_dxlhslhs(
dg::
evaluate(
one, g) ), m_dxrhsrhs(m_dxlhslhs), m_dylhslhs(m_dxlhslhs), m_dyrhsrhs( m_dxlhslhs), m_helper( m_dxlhslhs),
151template<
class Geometry,
class Matrix,
class Container>
152template<
class ContainerType0,
class ContainerType1,
class ContainerType2>
Function discretization routines.
DG_DEVICE T one(T, Ts ...)
Definition functions.h:24
void pointwiseDot(value_type alpha, const ContainerType1 &x1, const ContainerType2 &x2, value_type1 beta, ContainerType &y)
Definition blas1.h:406
void pointwiseDivide(value_type alpha, const ContainerType1 &x1, const ContainerType2 &x2, value_type1 beta, ContainerType &y)
Definition blas1.h:495
void symv(MatrixType &&M, const ContainerType1 &x, ContainerType2 &y)
Definition blas2.h:325
auto dx(const Topology &g, dg::bc bc, dg::direction dir=centered)
Definition derivativesT.h:14
auto dy(const Topology &g, dg::bc bc, dg::direction dir=centered)
Short for dg::create::derivative( 1, g, bc, dir);
Definition derivativesT.h:21
bc
Switch between boundary conditions.
Definition enums.h:15
@ centered
centered derivative (cell to the left and right and current cell)
Definition enums.h:100
typename TensorTraits< std::decay_t< Vector > >::value_type get_value_type
Definition tensor_traits.h:45
auto evaluate(Functor &&f, const Topology &g)
Evaluate a function on grid coordinates
Definition evaluation.h:74
ContainerType volume2d(const SparseTensor< ContainerType > &t)
Definition multiply.h:362
Function discretization routines for mpi vectors.
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
Direct discretization of Poisson bracket .
Definition poisson.h:33
const Matrix & dylhs() const
Return internally used y - derivative.
Definition poisson.h:101
const Matrix & dxrhs() const
Return internally used x - derivative.
Definition poisson.h:110
const Matrix & dxlhs() const
Return internally used x - derivative.
Definition poisson.h:92
Poisson(const Geometry &g, bc bcx, bc bcy)
Create Poisson on a grid using different boundary conditions.
Geometry geometry_type
Definition poisson.h:34
Poisson(const Geometry &g, bc bcxlhs, bc bcylhs, bc bcxrhs, bc bcyrhs)
Create Poisson on a grid using different boundary conditions.
const Matrix & dyrhs()
Return internally used y - derivative.
Definition poisson.h:118
get_value_type< Container > value_type
Definition poisson.h:37
Poisson(const Geometry &g)
Create Poisson on a grid.
Container container_type
Definition poisson.h:36
void set_chi(const ContainerType0 &new_chi)
Change Chi.
Definition poisson.h:82
void operator()(const ContainerType0 &lhs, const ContainerType1 &rhs, ContainerType2 &result)
Compute poisson's bracket.