20 #ifndef LIBMESH_LIBMESH_H
21 #define LIBMESH_LIBMESH_H
25 #include "libmesh/libmesh_common.h"
26 #include "libmesh/libmesh_base.h"
34 #if defined(LIBMESH_HAVE_MPI) && defined(LIBMESH_HAVE_VTK)
35 class vtkMPIController;
58 enum SolverPackage : int;
83 #ifdef LIBMESH_HAVE_MPI
98 MPI_Comm COMM_WORLD_IN=MPI_COMM_WORLD,
int n_threads=-1);
118 const Parallel::Communicator &
comm()
const {
return *
_comm; }
134 #if defined(LIBMESH_HAVE_MPI) && defined(LIBMESH_HAVE_VTK)
191 template <
typename T>
193 template <
typename T>
209 template <
typename T>
219 template <
typename T>
225 #ifdef LIBMESH_USE_COMPLEX_NUMBERS
243 static_cast<Real>(3.1415926535897932384626433832795029L);
264 #endif // LIBMESH_LIBMESH_H
T command_line_next(std::string name, T value)
Use GetPot's search()/next() functions to get following arguments from the command line...
bool closed()
Checks that the library has been closed.
const unsigned int invalid_uint
A number which is used quite often to represent an invalid or uninitialized value for an unsigned int...
LibMeshInit(int argc, const char *const *argv, MPI_Comm COMM_WORLD_IN=MPI_COMM_WORLD, int n_threads=-1)
Initialize the library for use, with the command line options provided.
void enableSEGV(bool on)
Toggle libMesh reporting of segmentation faults.
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
vtkMPIController * _vtk_mpi_controller
const Number imaginary
The imaginary unit, .
SolverPackage default_solver_package()
T command_line_value(const std::string &name, T value)
const int invalid_int
A number which is used quite often to represent an invalid or uninitialized value for an integer...
virtual ~LibMeshInit()
Destructor.
const Parallel::Communicator & comm() const
Returns a Communicator created from the TIMPIInit object we hold, which will be a compatibility shim ...
TIMPI::TIMPIInit * _timpi_init
void enableFPE(bool on)
Toggle floating point exceptions – courtesy of Cody Permann & MOOSE team.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void command_line_vector(const std::string &name, std::vector< T > &vec)
Parallel::Communicator & comm()
bool initialized()
Checks that library initialization has been done.
bool on_command_line(std::string arg)
Parallel::Communicator * _comm