ASCOT5
Loading...
Searching...
No Matches
print.h
Go to the documentation of this file.
1
5#ifndef PRINT_H
6#define PRINT_H
7
8#include <stdio.h>
9
22
26extern const char VERBOSE_LEVEL;
27
31#define print_out(v,...) { if(VERBOSE_LEVEL >= (v)) printf(__VA_ARGS__); }
32
36#define print_out0(v,rank,root,...) { \
37 if(VERBOSE_LEVEL >= (v) &&(rank)==(root)) printf(__VA_ARGS__); }
38
42#define print_err(...) fprintf(stderr,__VA_ARGS__)
43
44#endif
const char VERBOSE_LEVEL
Verbose level.
Definition print.c:10
VERBOSE_RANK
Versbosity levels and definitions.
Definition print.h:16
@ VERBOSE_NORMAL
Definition print.h:18
@ VERBOSE_IO
Definition print.h:20
@ VERBOSE_MINIMAL
Definition print.h:19
@ VERBOSE_DEBUG
Definition print.h:17