Logging
divERGe includes a C style logging facility with a bunch of macros
mpi_???_printf and a loglevel setter mpi_loglevel_set(). For usage
from python, we provide mpi_py_print() and friends.
-
void mpi_printf(const char *fmt, ...)
[source] act like
printf(fmt, ...), but only produce an output on rank 0
-
void mpi_eprintf(const char *fmt, ...)
[source] act like
fprintf(stderr, fmt, ...), but only produce an output on rank 0
-
void mpi_fprintf(FILE *file, const char *fmt, ...)
[source] act like
fprintf(file, fmt, ...), but only produce an output on rank 0
-
void mpi_lll_printf(mpi_loglevel_t loglevel, const char *fmt, ...)
[source] act like
printf(fmt, ...), but only produce an output on rank 0 and if loglevel is satisfied
-
void mpi_loglevel_set(mpi_loglevel_t loglevel)
[source] set loglevel. all messages below this level are discarded and not printed
-
void mpi_log_control(mpi_log_control_t ctl)
[source] control the output of diverge using
mpi_log_control_t
-
void mpi_py_print(const char *str)
[source] print to stdout from python including the diverge log prefix
-
void mpi_py_eprint(const char *str)
[source] print to stderr from python including the diverge log prefix