20 #ifndef LIBMESH_LIBMESH_H 21 #define LIBMESH_LIBMESH_H 25 #include "libmesh/libmesh_base.h" 26 #include "libmesh/libmesh_common.h" 27 #include "libmesh/libmesh_config.h" 35 #if defined(LIBMESH_HAVE_MPI) && defined(LIBMESH_HAVE_VTK) 36 class vtkMPIController;
43 #ifdef GETPOT_NAMESPACE 47 #ifdef GETPOT_NAMESPACE 93 #ifdef LIBMESH_HAVE_MPI 108 MPI_Comm COMM_WORLD_IN=MPI_COMM_WORLD,
int n_threads=-1);
144 #if defined(LIBMESH_HAVE_MPI) && defined(LIBMESH_HAVE_VTK) 208 template <
typename T>
210 template <
typename T>
226 template <
typename T>
236 template <
typename T>
264 #ifdef LIBMESH_USE_COMPLEX_NUMBERS 289 #ifdef LIBMESH_DEFAULT_QUADRUPLE_PRECISION 290 constexpr
Real operator ""_R(
const char * r) {
return Real(r); }
292 constexpr
Real operator ""_R(
long double r) {
return r; }
293 constexpr
Real operator ""_R(
unsigned long long r) {
return Real(r); }
299 const Real pi = 3.1415926535897932384626433832795029_R;
320 #endif // LIBMESH_LIBMESH_H std::string name(const ElemQuality q)
This function returns a string containing some name for q.
T command_line_next(std::string name, T default_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.
The libMesh namespace provides an interface to certain functionality in the library.
vtkMPIController * _vtk_mpi_controller
const Number imaginary
The imaginary unit, .
const Parallel::Communicator & comm() const
Returns a Communicator created from the TIMPIInit object we hold, which will be a compatibility shim ...
SolverPackage default_solver_package()
T command_line_value(const std::string &, T)
const int invalid_int
A number which is used quite often to represent an invalid or uninitialized value for an integer...
virtual ~LibMeshInit()
Destructor.
TIMPI::TIMPIInit * _timpi_init
void enableFPE(bool on)
Toggle hardware trap floating point exceptions.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void add_command_line_names(const GetPot &getpot)
Merge a GetPot object's requested names into the set of queried command-line names.
void add_command_line_name(const std::string &name)
Add a name to the set of queried command-line names.
void command_line_vector(const std::string &, std::vector< T > &)
std::vector< std::string > command_line_names()
Parallel::Communicator & comm()
bool initialized()
Checks that library initialization has been done.
bool on_command_line(std::string arg)
SolverPackage
Defines an enum for various linear solver packages.
void ErrorVector unsigned int
void libmesh_terminate_handler()
A terminate handler.
Parallel::Communicator * _comm