MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
globals.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  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.
 
MFEM "global" communicator functions.

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

This "global" communicator is used for example in the function mfem_error(), which is 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.
 
void mfem::SetGlobalMPI_Comm (MPI_Comm comm)
 Set MFEM's "global" MPI communicator.
 

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.
 
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.
 
MPI_Comm mfem::MFEM_COMM_WORLD = MPI_COMM_WORLD