|
| RealGrid2d (real_type x0, real_type x1, real_type y0, real_type y1, unsigned n, unsigned Nx, unsigned Ny, bc bcx=PER, bc bcy=PER) |
| Equal polynomial coefficients. More...
|
|
| RealGrid2d (RealGrid1d< real_type > gx, RealGrid1d< real_type > gy) |
| Construct a 2d grid as the product of two 1d grids. More...
|
|
| RealGrid2d (const aRealTopology2d< real_type > &src) |
| allow explicit type conversion from any other topology More...
|
|
real_type | x0 () const |
| Left boundary in x. More...
|
|
real_type | x1 () const |
| Right boundary in x. More...
|
|
real_type | y0 () const |
| left boundary in y More...
|
|
real_type | y1 () const |
| Right boundary in y. More...
|
|
real_type | lx () const |
| length of x More...
|
|
real_type | ly () const |
| length of y More...
|
|
real_type | hx () const |
| cell size in x More...
|
|
real_type | hy () const |
| cell size in y More...
|
|
unsigned | n () const |
| number of polynomial coefficients in x More...
|
|
unsigned | nx () const |
| number of polynomial coefficients in x More...
|
|
unsigned | ny () const |
| number of polynomial coefficients in y More...
|
|
unsigned | Nx () const |
| number of cells in x More...
|
|
unsigned | Ny () const |
| number of cells in y More...
|
|
bc | bcx () const |
| boundary conditions in x More...
|
|
bc | bcy () const |
| boundary conditions in y More...
|
|
const DLT< real_type > & | dltx () const |
| discrete legendre trafo More...
|
|
const DLT< real_type > & | dlty () const |
| discrete legendre transformation in y More...
|
|
const RealGrid1d< real_type > & | gx () const |
| The x-axis grid. More...
|
|
const RealGrid1d< real_type > & | gy () const |
| The y-axis grid. More...
|
|
void | multiplyCellNumbers (real_type fx, real_type fy) |
| Multiply the number of cells with a given factor. More...
|
|
void | set (unsigned new_n, unsigned new_Nx, unsigned new_Ny) |
| Set the number of polynomials and cells. More...
|
|
void | set (unsigned new_nx, unsigned new_Nx, unsigned new_ny, unsigned new_Ny) |
| Set the number of polynomials and cells. More...
|
|
unsigned | size () const |
| The total number of points. More...
|
|
void | display (std::ostream &os=std::cout) const |
| Display. More...
|
|
void | shift (bool &negative, real_type &x, real_type &y) const |
| Shift any point coordinate to a corresponding grid coordinate according to the boundary condition. More...
|
|
void | shift (bool &negative, real_type &x, real_type &y, bc bcx, bc bcy) const |
| Shift any point coordinate to a corresponding grid coordinate according to the boundary condition. More...
|
|
bool | contains (real_type x, real_type y) const |
| Check if the grid contains a point. More...
|
|
template<class Vector > |
bool | contains (const Vector &x) const |
| Shortcut for contains( x[0], x[1]) More...
|
|
template<class real_type>
struct dg::RealGrid2d< real_type >
The simplest implementation of aRealTopology2d.
This code snippet demonstrates how to discretize and compute the norm of a function on a shared memory system
double function(double x, double y, double amp){
return amp*exp(x)*exp(y);
}
using namespace std::placeholders;
auto functor = std::bind( function, _1, _2, 2.);
get_value_type< MatrixType > dot(const ContainerType1 &x, const MatrixType &m, const ContainerType2 &y)
; Binary reproducible general dot product
Definition: blas2.h:85
thrust::host_vector< real_type > evaluate(UnaryOp f, const RealGrid1d< real_type > &g)
Evaluate a 1d function on grid coordinates.
Definition: evaluation.h:67
MPI_Vector< thrust::host_vector< real_type > > weights(const aRealMPITopology2d< real_type > &g)
Nodal weight coefficients.
Definition: mpi_weights.h:22
thrust::host_vector< double > HVec
Host Vector.
Definition: typedefs.h:19