Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
convenience mpi init functions More...
#include <iostream>
#include <cassert>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include "../enums.h"
Go to the source code of this file.
Namespaces | |
namespace | dg |
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library. | |
Functions | |
static void | dg::mpi_init (int argc, char *argv[]) |
Convencience shortcut: Calls MPI_Init or MPI_Init_thread. More... | |
static void | dg::mpi_init2d (dg::bc bcx, dg::bc bcy, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
Read in number of processses and create Cartesian MPI communicator. More... | |
static void | dg::mpi_init2d (unsigned &n, unsigned &Nx, unsigned &Ny, MPI_Comm comm, std::istream &is=std::cin, bool verbose=true) |
Read in number of processes and broadcast to process group. More... | |
static 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) |
Read in number of processses and grid size and create Cartesian MPI communicator. More... | |
static void | dg::mpi_init3d (dg::bc bcx, dg::bc bcy, dg::bc bcz, MPI_Comm &comm, std::istream &is=std::cin, bool verbose=true) |
Read in number of processses and create Cartesian MPI communicator. More... | |
static void | dg::mpi_init3d (unsigned &n, unsigned &Nx, unsigned &Ny, unsigned &Nz, MPI_Comm comm, std::istream &is=std::cin, bool verbose=true) |
Read in number of processes and broadcast to process group. More... | |
static 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) |
Read in number of processses and grid size and create Cartesian MPI communicator. More... | |
convenience mpi init functions
enums need to be included before this