-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathmisc.h
75 lines (50 loc) · 1.83 KB
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef __MISC_H__
#define __MISC_H__
#include <quda.h>
#ifdef __cplusplus
extern "C" {
#endif
void display_spinor(void* spinor, int len, int precision);
void display_link(void* link, int len, int precision);
int link_sanity_check(void* link, int len, int precision, int dir, QudaGaugeParam* gaugeParam);
int site_link_sanity_check(void* link, int len, int precision, QudaGaugeParam* gaugeParam);
QudaReconstructType get_recon(char* s);
const char* get_recon_str(QudaReconstructType recon);
QudaPrecision get_prec(char* s);
const char* get_prec_str(QudaPrecision prec);
const char* get_gauge_order_str(QudaGaugeFieldOrder order);
const char* get_test_type(int t);
const char* get_unitarization_str(bool svd_only);
QudaMassNormalization get_mass_normalization_type(char* s);
const char* get_mass_normalization_str(QudaMassNormalization);
QudaVerbosity get_verbosity_type(char* s);
const char* get_verbosity_str(QudaVerbosity);
QudaMatPCType get_matpc_type(char* s);
const char* get_matpc_str(QudaMatPCType);
QudaSolveType get_solve_type(char* s);
const char* get_solve_str(QudaSolveType);
QudaTwistFlavorType get_flavor_type(char* s);
int get_rank_order(char* s);
QudaDslashType get_dslash_type(char* s);
const char* get_dslash_str(QudaDslashType type);
QudaInverterType get_solver_type(char* s);
const char* get_solver_str(QudaInverterType type);
const char* get_quda_ver_str();
QudaExtLibType get_solve_ext_lib_type(char* s);
QudaFieldLocation get_df_location_ritz(char* s);
QudaMemoryType get_df_mem_type_ritz(char* s);
#ifdef __cplusplus
}
#endif
#define XUP 0
#define YUP 1
#define ZUP 2
#define TUP 3
#define TDOWN 4
#define ZDOWN 5
#define YDOWN 6
#define XDOWN 7
#define OPP_DIR(dir) (7-(dir))
#define GOES_FORWARDS(dir) (dir<=3)
#define GOES_BACKWARDS(dir) (dir>3)
#endif