ASCOT5
|
Macros for printing console output. More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | print_out(v, ...) { if(VERBOSE_LEVEL >= (v)) printf(__VA_ARGS__); } |
Print to standard output. | |
#define | print_out0(v, rank, root, ...) |
Print to standard output only for root process. | |
#define | print_err(...) fprintf(stderr,__VA_ARGS__) |
Print to standard error. | |
Enumerations | |
enum | VERBOSE_RANK { VERBOSE_DEBUG = 2 , VERBOSE_NORMAL = 1 , VERBOSE_MINIMAL = 0 , VERBOSE_IO = 1 } |
Versbosity levels and definitions. More... | |
Variables | |
const char | VERBOSE_LEVEL |
Verbose level. | |
Macros for printing console output.
Definition in file print.h.
#define print_out | ( | v, | |
... ) { if(VERBOSE_LEVEL >= (v)) printf(__VA_ARGS__); } |
#define print_out0 | ( | v, | |
rank, | |||
root, | |||
... ) |
Print to standard output only for root process.
#define print_err | ( | ... | ) | fprintf(stderr,__VA_ARGS__) |
enum VERBOSE_RANK |
Versbosity levels and definitions.
DEBUG, NORMAL, and MINIMAL are levels that can be specified and the rest are used to specify to which levels operations belongs to.
Enumerator | |
---|---|
VERBOSE_DEBUG | For debugging purposes |
VERBOSE_NORMAL | For normal output |
VERBOSE_MINIMAL | Only print version and simulation status |
VERBOSE_IO | Flag for IO operations |