ScalES-PPM
Loading...
Searching...
No Matches
core.h File Reference
#include "core/symprefix.h"

Macros

#define __attribute__(x)
 
#define PPM_UNUSED(x)
 
#define die(msg)
 

Typedefs

typedef int MPI_Comm
 
typedef int MPI_Fint
 
typedef void(*)(MPI_Comm comm, const char *msg, const char *source, int line) SymPrefi (abort_func)) ((noreturn))
 

Enumerations

enum  { MPI_COMM_WORLD = 4711 , MPI_COMM_NULL = 0 }
 

Functions

 SymPrefix (abort_func) SymPrefix(abort)
 
void SymPrefix restore_default_abort_handler (void)
 
MPI_Comm SymPrefix (default_comm)
 
void SymPrefix abort_default (MPI_Comm comm, const char *msg, const char *source, int line) __attribute__((noreturn))
 
void SymPrefix set_default_comm (MPI_Comm comm)
 

Detailed Description

--- interface to user-adjustable core routines of scales ppm

Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Macro Definition Documentation

◆ __attribute__

#define __attribute__ ( x)
Value:
/*NOTHING*/

◆ die

#define die ( msg)
Value:
SymPrefix(abort)(SymPrefix(default_comm), (msg), __FILE__, __LINE__)

◆ PPM_UNUSED

#define PPM_UNUSED ( x)
Value:
UNUSED_ ## x __attribute__((__unused__))

Typedef Documentation

◆ (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

typedef int MPI_Comm

fall back to int in case no MPI implementation was found

◆ MPI_Fint

typedef int MPI_Fint

fall back to int in case no MPI implementation was found

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

provide value to use in case no actual communicators exist

Function Documentation

◆ abort_default()

void SymPrefix abort_default ( MPI_Comm comm,
const char * msg,
const char * source,
int line )
extern

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
commMPI communcator object to use on call to MPI_Abort
msgmessage text to print
sourcestring describing source file name
lineline number of caller

◆ 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)
extern

change default communicator object

◆ SymPrefix() [1/2]

SymPrefix ( abort_func )
extern

Unless modified, this function pointer will reference PPM_abort_default.

◆ SymPrefix() [2/2]

MPI_Comm SymPrefix ( default_comm )
extern

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.