|
| RealMPIGrid2d (real_type x0, real_type x1, real_type y0, real_type y1, unsigned n, unsigned Nx, unsigned Ny, MPI_Comm comm) |
| Equal polynomial coefficients. More...
|
|
| RealMPIGrid2d (real_type x0, real_type x1, real_type y0, real_type y1, unsigned n, unsigned Nx, unsigned Ny, bc bcx, bc bcy, MPI_Comm comm) |
| Equal polynomial coefficients. More...
|
|
| RealMPIGrid2d (RealGrid1d< real_type > gx, RealGrid1d< real_type > gy, MPI_Comm comm) |
| Construct a 2d grid as the product of two 1d grids. More...
|
|
| RealMPIGrid2d (const aRealMPITopology2d< real_type > &src) |
| allow explicit type conversion from any other topology More...
|
|
real_type | x0 () const |
| Return global x0. More...
|
|
real_type | x1 () const |
| Return global x1. More...
|
|
real_type | y0 () const |
| Return global y0. More...
|
|
real_type | y1 () const |
| Return global y1. More...
|
|
real_type | lx () const |
| Return global lx. More...
|
|
real_type | ly () const |
| Return global ly. More...
|
|
real_type | hx () const |
| Return global hx. More...
|
|
real_type | hy () const |
| Return global hy. More...
|
|
unsigned | n () const |
| Return n. More...
|
|
unsigned | nx () const |
| number of polynomial coefficients in x More...
|
|
unsigned | ny () const |
| number of polynomial coefficients in y More...
|
|
unsigned | Nx () const |
| Return the global number of cells. More...
|
|
unsigned | Ny () const |
| Return the global number of cells. More...
|
|
bc | bcx () const |
| global x boundary More...
|
|
bc | bcy () const |
| global y boundary More...
|
|
MPI_Comm | communicator () const |
| Return mpi cartesian communicator that is used in this grid. More...
|
|
const DLT< real_type > & | dltx () const |
| discrete legendre transformation in x More...
|
|
const DLT< real_type > & | dlty () const |
| discrete legendre transformation in y More...
|
|
unsigned | size () const |
| The total global number of points. More...
|
|
unsigned | local_size () const |
| The total local number of points. More...
|
|
void | display (std::ostream &os=std::cout) const |
| Display global and local grid. More...
|
|
int | pidOf (real_type x, real_type y) const |
| Returns the pid of the process that holds the local grid surrounding the given point. 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...
|
|
bool | local2globalIdx (int localIdx, int PID, int &globalIdx) const |
| Map a local index plus the PID to a global vector index. More...
|
|
bool | global2localIdx (int globalIdx, int &localIdx, int &PID) const |
| Map a global vector index to a local vector Index and the corresponding PID. More...
|
|
const RealGrid2d< real_type > & | local () const |
| Return a non-MPI grid local for the calling process. More...
|
|
const RealGrid2d< real_type > & | global () const |
| Return the global non-MPI grid. More...
|
|
template<class real_type>
struct dg::RealMPIGrid2d< real_type >
The simplest implementation of aRealMPITopology2d.
This code snippet demonstrates how to discretize and compute the norm of a function on a distributed 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
mpi Vector class
Definition: mpi_vector.h:32
The simplest implementation of aRealMPITopology2d.
Definition: mpi_grid.h:691