MFEM  v4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Namespaces | Functions | Variables
globals.cpp File Reference

Go to the source code of this file.

Namespaces

 mfem
 

Functions

std::string mfem::MakeParFilename (const std::string &prefix, const int myid, const std::string suffix="", const int width=6)
 Construct a string of the form "<prefix><myid><suffix>" where the integer myid is padded with leading zeros to be at least width digits long. More...
 
MFEM "global" communicator functions.

Functions for getting and setting the MPI communicator used by the library as the "global" communicator.

Currently, the MFEM "global" communicator is used only by the function mfem_error(), invoked when an error is detected - the "global" communicator is used as a parameter to MPI_Abort() to terminate all "global" tasks.

MPI_Comm mfem::GetGlobalMPI_Comm ()
 Get MFEM's "global" MPI communicator. More...
 
void mfem::SetGlobalMPI_Comm (MPI_Comm comm)
 Set MFEM's "global" MPI communicator. More...
 

Variables

OutStream mfem::out (std::cout)
 Global stream used by the library for standard output. Initially it uses the same std::streambuf as std::cout, however that can be changed. More...
 
OutStream mfem::err (std::cerr)
 Global stream used by the library for standard error output. Initially it uses the same std::streambuf as std::cerr, however that can be changed. More...
 
MPI_Comm mfem::MFEM_COMM_WORLD = MPI_COMM_WORLD