Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::RealEquidistRefinement< real_type > Struct Template Reference

Cell refinement around a given node. More...

Inheritance diagram for dg::RealEquidistRefinement< real_type >:
[legend]

Public Member Functions

 RealEquidistRefinement (unsigned add_x, unsigned node, unsigned howmany=1)
 Divide a number of cells left and right of a node into an equidistant number of new cells. More...
 
virtual RealEquidistRefinementclone () const
 
- Public Member Functions inherited from dg::aRealRefinement1d< real_type >
void generate (const RealGrid1d< real_type > &g_old, thrust::host_vector< real_type > &weights, thrust::host_vector< real_type > &abscissas) const
 Generate the grid transformation. More...
 
unsigned N_new (unsigned N_old, bc bcx) const
 the new number of cells More...
 
virtual aRealRefinement1dclone () const =0
 
virtual ~aRealRefinement1d ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from dg::aRealRefinement1d< real_type >
 aRealRefinement1d ()=default
 
 aRealRefinement1d (const aRealRefinement1d &src)=default
 
aRealRefinement1doperator= (const aRealRefinement1d &src)=default
 

Detailed Description

template<class real_type>
struct dg::RealEquidistRefinement< real_type >

Cell refinement around a given node.

Constructor & Destructor Documentation

◆ RealEquidistRefinement()

template<class real_type >
dg::RealEquidistRefinement< real_type >::RealEquidistRefinement ( unsigned  add_x,
unsigned  node,
unsigned  howmany = 1 
)
inline

Divide a number of cells left and right of a node into an equidistant number of new cells.

There will be 2*howmany refined cells (each containing 1+add_x equidistant cells) at the end except if a corner node is given and the boundary condition is not periodic.

Parameters
add_xnumber of additional cells in the cells around the node
nodethe node around which to refine. We count nodes from 0 (left corner) to N (right corner).
howmanynumber of cells around a node to refine

Member Function Documentation

◆ clone()

template<class real_type >
virtual RealEquidistRefinement * dg::RealEquidistRefinement< real_type >::clone ( ) const
inlinevirtual

The documentation for this struct was generated from the following file: