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
16
enum
VERBOSE_RANK
{
17
VERBOSE_DEBUG
= 2,
18
VERBOSE_NORMAL
= 1,
19
VERBOSE_MINIMAL
= 0,
20
VERBOSE_IO
= 1
21
};
22
26
extern
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
VERBOSE_LEVEL
const char VERBOSE_LEVEL
Verbose level.
Definition
print.c:10
VERBOSE_RANK
VERBOSE_RANK
Versbosity levels and definitions.
Definition
print.h:16
VERBOSE_NORMAL
@ VERBOSE_NORMAL
Definition
print.h:18
VERBOSE_IO
@ VERBOSE_IO
Definition
print.h:20
VERBOSE_MINIMAL
@ VERBOSE_MINIMAL
Definition
print.h:19
VERBOSE_DEBUG
@ VERBOSE_DEBUG
Definition
print.h:17
Generated on Wed Oct 9 2024 17:13:57 for ASCOT5 by
1.10.0