Bridge++
Ver. 2.0.2
io_format_gauge.h
Go to the documentation of this file.
1
14
#ifndef IO_FORMAT_GAUGE_INCLUDED
15
#define IO_FORMAT_GAUGE_INCLUDED
16
17
#include "
io_format.h
"
18
#include "
Parameters/commonParameters.h
"
19
20
// // Definition of NC and substitution into Nc in the constructor
21
// // is added. [18 Mar 2021]
22
// #ifdef USE_GROUP_SU3
23
// #define NC 3
24
// #else
25
// #ifdef USE_GROUP_SU2
26
// #define NC 2
27
// #else
28
// #ifdef USE_GROUP_SU_N
29
// #define NC 0
30
// #endif
31
// #endif
32
// #endif
33
34
namespace
IO_Format
{
35
namespace
Gauge {
43
class
ILDG_Format
:
public
Format
{
44
public
:
45
ILDG_Format
()
46
{
47
int
Nc =
CommonParameters::Nc
();
48
int
Ndim =
CommonParameters::Ndim
();
49
// int Nc = NC;
50
// int Ndim = 4;
51
52
m_nin
= 2 * Nc * Nc * Ndim;
53
m_nex
= 1;
54
m_matrix
= 2 * Nc * Nc;
55
}
56
57
int
nin
()
const
{
return
m_nin
; }
58
int
nex
()
const
{
return
m_nex
; }
59
60
void
file_to_field
(
int
& s,
int
& t,
const
int
i,
const
int
j)
const
61
{
62
s = i %
m_matrix
;
63
t = i /
m_matrix
;
64
}
65
66
private
:
67
int
m_nin
;
68
int
m_nex
;
69
int
m_matrix
;
70
};
71
81
class
JLQCD_Format
:
public
Trivial_Format
{};
82
83
//----------------------------------------------------------------
84
// predefined formats
85
86
// extern const Format *ILDG;
87
// extern const Format *JLQCD;
88
}
// namespace Gauge
89
}
// namespace IO_Format
90
91
// #ifdef NC
92
// #undef NC
93
// #endif
94
95
#endif
/* IO_FORMAT_GAUGE_INCLUDED */
IO_Format::Gauge::ILDG_Format::nin
int nin() const
Definition:
io_format_gauge.h:57
CommonParameters::Ndim
static int Ndim()
Definition:
commonParameters.h:117
IO_Format::Gauge::ILDG_Format::nex
int nex() const
Definition:
io_format_gauge.h:58
IO_Format::Gauge::ILDG_Format::ILDG_Format
ILDG_Format()
Definition:
io_format_gauge.h:45
IO_Format::Format
Definition:
io_format.h:36
CommonParameters::Nc
static int Nc()
Definition:
commonParameters.h:115
IO_Format::Gauge::JLQCD_Format
Definition:
io_format_gauge.h:81
io_format.h
IO_Format::Gauge::ILDG_Format
Definition:
io_format_gauge.h:43
IO_Format::Gauge::ILDG_Format::m_matrix
int m_matrix
Definition:
io_format_gauge.h:69
IO_Format::Trivial_Format
Definition:
io_format.h:46
IO_Format::Gauge::ILDG_Format::m_nex
int m_nex
Definition:
io_format_gauge.h:68
IO_Format
IO_Format for data layout conversion from/to file.
Definition:
io_format.cpp:20
commonParameters.h
IO_Format::Gauge::ILDG_Format::m_nin
int m_nin
Definition:
io_format_gauge.h:67
IO_Format::Gauge::ILDG_Format::file_to_field
void file_to_field(int &s, int &t, const int i, const int j) const
Definition:
io_format_gauge.h:60
src
lib
IO
io_format_gauge.h
Generated on Sat Feb 10 2024 14:20:00 for Bridge++ by
1.8.17