|
#define | __attribute__(x) /*NOTHING*/ |
|
#define | PPM_UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) |
|
#define | die(msg) SymPrefix(abort)(SymPrefix(default_comm), (msg), __FILE__, __LINE__) |
|
|
enum | { MPI_COMM_WORLD = 4711
, MPI_COMM_NULL = 0
} |
|
— interface to user-adjustable core routines of scales ppm
- Copyright
- (C) 2010 Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
- Author
- Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
◆ (abort_func)
typedef void(*)(MPI_Comm comm, const char *msg, const char *source, int line)SymPrefi (abort_func)) ((noreturn)) |
functions used as error handler must conform to this interface
◆ MPI_Comm
fall back to int in case no MPI implementation was found
◆ MPI_Fint
fall back to int in case no MPI implementation was found
◆ anonymous enum
provide value to use in case no actual communicators exist
◆ abort_default()
void SymPrefix() abort_default |
( |
MPI_Comm |
comm, |
|
|
const char * |
msg, |
|
|
const char * |
source, |
|
|
int |
line |
|
) |
| |
This function prints the message argument and file and line of the error to standard error, and calls either MPI_Abort or abort depending on whether MPI is initialized.
- Parameters
-
comm | MPI communcator object to use on call to MPI_Abort |
msg | message text to print |
source | string describing source file name |
line | line number of caller |
◆ restore_default_abort_handler()
void SymPrefix() restore_default_abort_handler |
( |
void |
| ) |
|
Restore default abort handler.
◆ set_default_comm()
change default communicator object
◆ SymPrefix() [1/2]
Unless modified, this function pointer will reference PPM_abort_default.
◆ SymPrefix() [2/2]
communicator object to use by default
Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.