Extension: Geometries
#include "dg/geometries/geometries.h"
|
Namespaces | |
namespace | blas1 |
namespace | blas2 |
namespace | create |
namespace | geo |
namespace | tensor |
namespace | x |
Enumerations | |
enum | dist_type |
enum | bc |
enum | direction |
enum | space |
enum | coo2d { x , y } |
enum | coo3d { x , y , z , xy , yz , xz } |
enum | multistep_identifier |
enum | to { exact , at_least } |
enum | tableau_identifier |
Functions | |
void | transpose (unsigned nx, unsigned ny, const ContainerType &in, ContainerType &out) |
void | extend_line (unsigned nx, unsigned ny, const ContainerType &in, ContainerType &out) |
void | extend_column (unsigned nx, unsigned ny, const ContainerType &in, ContainerType &out) |
auto | asDenseMatrix (const std::vector< const ContainerType * > &in) |
auto | asDenseMatrix (const std::vector< const ContainerType * > &in, unsigned size) |
std::vector< const ContainerType * > | asPointers (const std::vector< ContainerType > &in) |
static void | abort_program (int code=-1) |
static void | mpi_init (int argc, char *argv[]) |
static void | mpi_init2d (dg::bc bcx, dg::bc bcy, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
static void | mpi_init2d (unsigned &n, unsigned &Nx, unsigned &Ny, MPI_Comm comm, std::istream &is=std::cin, bool verbose=true) |
static void | mpi_init2d (dg::bc bcx, dg::bc bcy, unsigned &n, unsigned &Nx, unsigned &Ny, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
static void | mpi_init3d (dg::bc bcx, dg::bc bcy, dg::bc bcz, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
static void | mpi_init3d (unsigned &n, unsigned &Nx, unsigned &Ny, unsigned &Nz, MPI_Comm comm, std::istream &is=std::cin, bool verbose=true) |
static void | mpi_init3d (dg::bc bcx, dg::bc bcy, dg::bc bcz, unsigned &n, unsigned &Nx, unsigned &Ny, unsigned &Nz, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
Matrix | transpose (const Matrix &src) |
thrust::host_vector< real_type > | pullback (const Functor &f, const aRealGeometryX2d< real_type > &g) |
thrust::host_vector< real_type > | pullback (const Functor &f, const aRealGeometryX3d< real_type > &g) |
thrust::host_vector< real_type > | evaluate (UnaryOp f, const RealGrid1d< real_type > &g) |
thrust::host_vector< real_type > | evaluate (const BinaryOp &f, const aRealTopology2d< real_type > &g) |
thrust::host_vector< real_type > | evaluate (const TernaryOp &f, const aRealTopology3d< real_type > &g) |
thrust::host_vector< real_type > | integrate (const thrust::host_vector< real_type > &in, const RealGrid1d< real_type > &g, dg::direction dir=dg::forward) |
thrust::host_vector< real_type > | integrate (UnaryOp f, const RealGrid1d< real_type > &g, dg::direction dir=dg::forward) |
thrust::host_vector< real_type > | evaluate (UnaryOp f, const RealGridX1d< real_type > &g) |
thrust::host_vector< real_type > | evaluate (const BinaryOp &f, const aRealTopologyX2d< real_type > &g) |
thrust::host_vector< real_type > | evaluate (const TernaryOp &f, const aRealTopologyX3d< real_type > &g) |
thrust::host_vector< real_type > | forward_transform (const thrust::host_vector< real_type > &in, const aRealTopology2d< real_type > &g) |
static DG_DEVICE double | one (double x) |
static DG_DEVICE double | one (double x, double y) |
static DG_DEVICE double | one (double x, double y, double z) |
static DG_DEVICE double | zero (double x) |
static DG_DEVICE double | zero (double x, double y) |
static DG_DEVICE double | zero (double x, double y, double z) |
static DG_DEVICE double | cooX1d (double x) |
static DG_DEVICE double | cooX2d (double x, double y) |
static DG_DEVICE double | cooX3d (double x, double y, double z) |
static DG_DEVICE double | cooY2d (double x, double y) |
static DG_DEVICE double | cooY3d (double x, double y, double z) |
static DG_DEVICE double | cooZ3d (double x, double y, double z) |
static DG_DEVICE double | cooRZP2X (double R, double Z, double P) |
static DG_DEVICE double | cooRZP2Y (double R, double Z, double P) |
static DG_DEVICE double | cooRZP2Z (double R, double Z, double P) |
static DG_DEVICE float | one (float x) |
static DG_DEVICE float | one (float x, float y) |
static DG_DEVICE float | one (float x, float y, float z) |
static DG_DEVICE float | zero (float x) |
static DG_DEVICE float | zero (float x, float y) |
static DG_DEVICE float | zero (float x, float y, float z) |
real_type | interpolate (dg::space sp, const thrust::host_vector< real_type > &v, real_type x, const RealGrid1d< real_type > &g, dg::bc bcx=dg::NEU) |
real_type | interpolate (dg::space sp, const thrust::host_vector< real_type > &v, real_type x, real_type y, const aRealTopology2d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU) |
real_type | interpolate (dg::space sp, const thrust::host_vector< real_type > &v, real_type x, real_type y, const aRealTopologyX2d< real_type > &g, dg::bc bcx=dg::NEU, dg::bc bcy=dg::NEU) |
MPI_Vector< thrust::host_vector< real_type > > | evaluate (const BinaryOp &f, const aRealMPITopology2d< real_type > &g) |
MPI_Vector< thrust::host_vector< real_type > > | evaluate (const TernaryOp &f, const aRealMPITopology3d< real_type > &g) |
MPI_Vector< thrust::host_vector< real_type > > | global2local (const thrust::host_vector< real_type > &global, const aRealMPITopology3d< real_type > &g) |
MPI_Vector< thrust::host_vector< real_type > > | global2local (const thrust::host_vector< real_type > &global, const aRealMPITopology2d< real_type > &g) |
dg::MIHMatrix_t< real_type > | convert (const dg::IHMatrix_t< real_type > &global, const ConversionPolicy &policy) |
dg::IHMatrix_t< real_type > | convertGlobal2LocalRows (const dg::IHMatrix_t< real_type > &global, const ConversionPolicy &policy) |
void | convertLocal2GlobalCols (dg::IHMatrix_t< real_type > &local, const ConversionPolicy &policy) |
dg::Operator< T > | invert (const dg::Operator< T > &in) |
Operator< T > | tensorproduct (const Operator< T > &op1, const Operator< T > &op2) |
cusp::coo_matrix< int, T, cusp::host_memory > | tensorproduct (unsigned N, const Operator< T > &op) |
cusp::coo_matrix< int, T, cusp::host_memory > | sandwich (const Operator< T > &left, const cusp::coo_matrix< int, T, cusp::host_memory > &m, const Operator< T > &right) |
T | gcd (T a, T b) |
T | lcm (T a, T b) |
void | split (SharedContainer &in, std::vector< View< SharedContainer > > &out, const aRealTopology3d< real_type > &grid) |
std::vector< View< SharedContainer > > | split (SharedContainer &in, const aRealTopology3d< real_type > &grid) |
void | assign3dfrom2d (const thrust::host_vector< real_type > &in2d, Container &out, const aRealTopology3d< real_type > &grid) |
void | split (MPIContainer &in, std::vector< get_mpi_view_type< MPIContainer > > &out, const aRealMPITopology3d< real_type > &grid) |
std::vector< get_mpi_view_type< MPIContainer > > | split (MPIContainer &in, const aRealMPITopology3d< real_type > &grid) |
void | assign3dfrom2d (const MPI_Vector< thrust::host_vector< real_type > > &in2d, MPI_Vector< LocalContainer > &out, const aRealMPITopology3d< real_type > &grid) |
thrust::host_vector< real_type > | pullback (const Functor &f, const aRealGeometry2d< real_type > &g) |
thrust::host_vector< real_type > | pullback (const Functor &f, const aRealGeometry3d< real_type > &g) |
MPI_Vector< thrust::host_vector< real_type > > | pullback (const Functor &f, const aRealMPIGeometry2d< real_type > &g) |
MPI_Vector< thrust::host_vector< real_type > > | pullback (const Functor &f, const aRealMPIGeometry3d< real_type > &g) |
void | pushForwardPerp (const Functor1 &vR, const Functor2 &vZ, container &vx, container &vy, const Geometry &g) |
void | pushForward (const Functor1 &vR, const Functor2 &vZ, const Functor3 &vPhi, container &vx, container &vy, container &vz, const Geometry &g) |
void | pushForwardPerp (const FunctorRR &chiRR, const FunctorRZ &chiRZ, const FunctorZZ &chiZZ, SparseTensor< container > &chi, const Geometry &g) |
cusp::csr_matrix< int, T, cusp::host_memory > | tensorproduct (const cusp::csr_matrix< int, T, cusp::host_memory > &lhs, const cusp::csr_matrix< int, T, cusp::host_memory > &rhs) |
void | assign (const from_ContainerType &from, ContainerType &to, Params &&... ps) |
ContainerType | construct (const from_ContainerType &from, Params &&... ps) |
void | apply (get_value_type< ContainerType1 > alpha, MatrixType &&M, const ContainerType1 &x, get_value_type< ContainerType1 > beta, ContainerType2 &y) |
void | apply (MatrixType &&M, const ContainerType1 &x, ContainerType2 &y) |
static std::string | bc2str (bc bcx) |
static bc | str2bc (std::string s) |
static bc | inverse (bc bound) |
static direction | str2direction (std::string s) |
static std::string | direction2str (enum direction dir) |
static direction | inverse (direction dir) |
std::vector< double > | least_squares (const std::vector< ContainerType0 > &bs, const ContainerType1 &b) |
void | nested_iterations (std::vector< MatrixType0 > &ops, ContainerType0 &x, const ContainerType1 &b, std::vector< MatrixType1 > &inverse_ops, NestedGrids &nested_grids) |
void | multigrid_cycle (std::vector< MatrixType0 > &ops, std::vector< MatrixType1 > &inverse_ops_down, std::vector< MatrixType2 > &inverse_ops_up, NestedGrids &nested_grids, unsigned gamma, unsigned p) |
void | full_multigrid (std::vector< MatrixType0 > &ops, ContainerType0 &x, const ContainerType1 &b, std::vector< MatrixType1 > &inverse_ops_down, std::vector< MatrixType2 > &inverse_ops_up, NestedGrids &nested_grids, unsigned gamma, unsigned mu) |
void | fmg_solve (std::vector< MatrixType0 > &ops, ContainerType0 &x, const ContainerType1 &b, std::vector< MatrixType1 > &inverse_ops_down, std::vector< MatrixType2 > &inverse_ops_up, NestedGrids &nested_grids, const ContainerType2 &weights, double eps, unsigned gamma) |
int | bisection1d (UnaryOp &op, double &x_min, double &x_max, const double eps) |
static std::string | to2str (enum to mode) |
bool | is_same (double x, double y, double eps=1e-15) |
bool | is_same (float x, float y, float eps=1e-6) |
bool | is_divisable (double a, double b, double eps=1e-15) |
bool | is_divisable (float a, float b, float eps=1e-6) |
auto | compose (UnaryOp f, Functor g) |
auto | compose (UnaryOp f0, Functors... fs) |