#include <mpi.h>
#include <yaxt.h>
#include "core/symprefix.h"
Go to the source code of this file.
|
typedef Xt_int | yac_int |
|
typedef void(*)(MPI_Comm comm, const char *msg, const char *source, int line) SymPrefi | (abort_func)) ((noreturn)) |
|
— 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
Definition in file core.h.
◆ __attribute__
#define __attribute__ |
( |
|
x | ) |
/*NOTHING*/ |
◆ die
◆ UNUSED
#define UNUSED |
( |
|
x | ) |
(void)(x) |
◆ (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
Definition at line 74 of file core.h.
◆ yac_int
◆ 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 wether 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 |
Definition at line 74 of file core.c.
◆ restore_default_abort_handler()
void SymPrefix() restore_default_abort_handler |
( |
void |
| ) |
|
Restore default abort handler.
◆ set_default_comm()
void SymPrefix() set_default_comm |
( |
MPI_Comm |
comm | ) |
|
change default communicator object
Definition at line 68 of file core.c.
◆ SymPrefix() [1/2]
Unless modified, this function pointer will reference PPM_abort_default.
Definition at line 86 of file core.c.
◆ SymPrefix() [2/2]
MPI_Comm SymPrefix |
( |
default_comm |
| ) |
|
communicator object to use by default