25 #ifdef LIBMESH_HAVE_SYS_TYPES_H 26 #include <sys/types.h> 28 #ifdef LIBMESH_HAVE_UNISTD_H 32 #ifdef LIBMESH_HAVE_CSIGNAL 39 namespace MacroFunctions
41 void here(
const char * file,
int line,
const char * date,
const char * time)
46 <<
", compiled " << date
53 void stop(
const char * file,
int line,
const char * date,
const char * time)
58 #if defined(LIBMESH_HAVE_CSIGNAL) && defined(SIGSTOP) 59 libMesh::out <<
"Stopping process " << getpid() <<
"..." << std::endl;
61 libMesh::out <<
"Continuing process " << getpid() <<
"..." << std::endl;
63 libMesh::out <<
"WARNING: libmesh_stop() does not work; no operating system support." << std::endl;
69 void report_error(
const char * file,
int line,
const char * date,
const char * time)
73 static bool reporting_error =
false;
78 libMesh::err <<
"libMesh encountered an error while attempting to report_error." << std::endl;
81 reporting_error =
true;
90 reporting_error =
false;
processor_id_type global_n_processors()
void print_trace(std::ostream &out_stream)
void stop(const char *file, int line, const char *date, const char *time)
OStreamProxy err(std::cerr)
void here(const char *file, int line, const char *date, const char *time)
processor_id_type global_processor_id()
bool on_command_line(std::string arg)
void report_error(const char *file, int line, const char *date, const char *time)
OStreamProxy out(std::cout)