Discontinuous Galerkin Library
#include "dg/algorithm.h"
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Collaboration diagram for Legacy MPI functions:

Functions

void dg::mpi_init1d (dg::bc bcx, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true)
 DEPRECATED: Short for.
 
void dg::mpi_init2d (dg::bc bcx, dg::bc bcy, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true)
 DEPRECATED: Short for.
 
void dg::mpi_init3d (dg::bc bcx, dg::bc bcy, dg::bc bcz, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true)
 DEPRECATED: Short for.
 
void dg::mpi_init1d (dg::bc bcx, unsigned &n, unsigned &N, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true)
 DEPRECATED.
 
void dg::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)
 DEPRECATED.
 
void dg::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)
 DEPRECATED.
 

Detailed Description

Function Documentation

◆ mpi_init1d() [1/2]

void dg::mpi_init1d ( dg::bc bcx,
MPI_Comm & comm,
std::istream & is = std::cin,
bool verbose = true )
inline

DEPRECATED: Short for.

comm = mpi_cart_create( {bcx}, is, MPI_COMM_WORLD, true, verbose,
std::cout);
MPI_Comm mpi_cart_create(MPI_Comm comm_old, std::vector< int > dims, std::vector< int > periods, bool reorder=true)
Convenience call to MPI_Cart_create preceded by MPI_Dims_create.
Definition mpi_init.h:177

◆ mpi_init1d() [2/2]

void dg::mpi_init1d ( dg::bc bcx,
unsigned & n,
unsigned & N,
MPI_Comm & comm,
std::istream & is = std::cin,
bool verbose = true )
inline

DEPRECATED.

Short for

comm = mpi_cart_create( {bcx}, is, MPI_COMM_WORLD, true, verbose,
std::cout);
mpi_read_grid( n, {&N}, comm, is, verbose, std::cout);
void mpi_read_grid(unsigned &n, std::vector< unsigned > &N, MPI_Comm comm, std::istream &is=std::cin, bool verbose=true, std::ostream &os=std::cout)
Read in grid sizes from is.
Definition mpi_init.h:112

◆ mpi_init2d() [1/2]

void dg::mpi_init2d ( dg::bc bcx,
dg::bc bcy,
MPI_Comm & comm,
std::istream & is = std::cin,
bool verbose = true )
inline

DEPRECATED: Short for.

comm = mpi_cart_create( {bcx,bcy}, is, MPI_COMM_WORLD, true, verbose,
std::cout);

◆ mpi_init2d() [2/2]

void dg::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 )
inline

DEPRECATED.

Short for

comm = mpi_cart_create( {bcx, bcy}, is, MPI_COMM_WORLD, true, verbose,
std::cout);
mpi_read_grid( n, {&Nx, &Ny}, comm, is, verbose, std::cout);

◆ mpi_init3d() [1/2]

void dg::mpi_init3d ( dg::bc bcx,
dg::bc bcy,
dg::bc bcz,
MPI_Comm & comm,
std::istream & is = std::cin,
bool verbose = true )
inline

DEPRECATED: Short for.

comm = mpi_cart_create( {bcx,bcy,bcz}, is, MPI_COMM_WORLD, true, verbose,
std::cout);

◆ mpi_init3d() [2/2]

void dg::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 )
inline

DEPRECATED.

Short for

comm = mpi_cart_create( {bcx, bcy, bcz}, is, MPI_COMM_WORLD, true, verbose,
std::cout);
mpi_read_grid( n, {&Nx, &Ny, &Nz}, comm, is, verbose, std::cout);