23 #include "timpi/timpi_config.h" 29 void report_here(
const char * file,
int line,
const char * date,
const char * time)
31 std::ostringstream here_msg;
34 const std::size_t proc_id = commworld.
rank();
35 here_msg <<
"[" << proc_id <<
"] ";
37 here_msg << file <<
", line " << line <<
", compiled " 38 << date <<
" at " << time << std::endl;
39 std::cerr << here_msg.str();
43 void report_error(
const char * file,
int line,
const char * date,
const char * time)
47 static bool reporting_error =
false;
52 std::cerr <<
"TIMPI encountered an error while attempting to report_error." << std::endl;
55 reporting_error =
true;
59 reporting_error =
false;
processor_id_type rank() const
void report_error(const char *file, int line, const char *date, const char *time)
Encapsulates the MPI_Comm object.
void report_here(const char *file, int line, const char *date, const char *time)