-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeasurements.h
72 lines (59 loc) · 2.05 KB
/
measurements.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
/***********************************************************************
*
* Copyright (C) 2008 Carsten Urbach
*
* Adapted from monomial.h by Florian Burger 2009/12/16
*
* This file is part of tmLQCD.
*
* tmLQCD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* tmLQCD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with tmLQCD. If not, see <http://www.gnu.org/licenses/>.
***********************************************************************/
#ifndef _MEASUREMENTS_H
#define _MEASUREMENTS_H
#define max_no_measurements 20
/* Give the measurements a unambiguous number*/
#define ONLINE 0
#define PIONNORM 1
#define POLYAKOV 2
typedef struct {
int type;
int initialised;
int id;
/* frequency of the measurement */
int freq;
/* for maximal iterations in inversions for correlators */
int max_iter;
/* for polyakov loop */
int direction;
/* how it's usually called */
char name[100];
/* maximum number of slice, the source can be put
if the correlator is measured in T(Z)-direction this will be set to
T(LZ) by init_measurements
*/
int max_source_slice;
/* functions for the measurement */
void (*measurefunc) (const int traj, const int id, const int ieo);
} measurement;
/* list of all monomials */
extern measurement measurement_list[max_no_measurements];
extern int no_measurements;
/* add a new measurement to the list of measurements */
int add_measurement(const int type);
/* initialise all measurements in the list */
int init_measurements();
/* free space again */
void free_measurements();
void dummy_meas(const int traj, const int id, const int ieo);
#endif