Bridge++
Version 1.5.4
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
namespace
IO_Format {
21
namespace
Gauge {
29
class
ILDG_Format
:
public
Format
{
30
public
:
31
ILDG_Format
()
32
{
33
// int Nc = CommonParameters::Nc();
34
// int Ndim = CommonParameters::Ndim();
35
36
int
Nc = 3;
37
int
Ndim = 4;
38
39
m_nin
= 2 * Nc * Nc * Ndim;
40
m_nex
= 1;
41
m_matrix
= 2 * Nc * Nc;
42
}
43
44
int
nin
()
const
{
return
m_nin
; }
45
int
nex
()
const
{
return
m_nex
; }
46
47
void
file_to_field
(
int
& s,
int
& t,
const
int
i,
const
int
j)
const
48
{
49
s = i %
m_matrix
;
50
t = i /
m_matrix
;
51
}
52
53
private
:
54
int
m_nin
;
55
int
m_nex
;
56
int
m_matrix
;
57
};
58
68
class
JLQCD_Format
:
public
Trivial_Format
{};
69
70
//----------------------------------------------------------------
71
// predefined formats
72
73
extern
const
Format
*
ILDG
;
74
extern
const
Format
*
JLQCD
;
75
}
// namespace Gauge
76
}
// namespace IO_Format
77
#endif
/* IO_FORMAT_GAUGE_INCLUDED */
IO_Format::Gauge::ILDG_Format::m_nin
int m_nin
Definition:
io_format_gauge.h:54
IO_Format::Gauge::ILDG_Format::m_nex
int m_nex
Definition:
io_format_gauge.h:55
IO_Format::Gauge::ILDG_Format::m_matrix
int m_matrix
Definition:
io_format_gauge.h:56
IO_Format::Gauge::ILDG
const Format * ILDG
Definition:
io_format.cpp:28
IO_Format::Gauge::ILDG_Format::ILDG_Format
ILDG_Format()
Definition:
io_format_gauge.h:31
IO_Format::Gauge::ILDG_Format::nex
int nex() const
Definition:
io_format_gauge.h:45
IO_Format::Gauge::JLQCD_Format
Definition:
io_format_gauge.h:68
commonParameters.h
IO_Format::Trivial_Format
Definition:
io_format.h:46
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:47
IO_Format::Gauge::ILDG_Format
Definition:
io_format_gauge.h:29
IO_Format::Gauge::ILDG_Format::nin
int nin() const
Definition:
io_format_gauge.h:44
IO_Format::Gauge::JLQCD
const Format * JLQCD
Definition:
io_format.cpp:29
IO_Format::Format
Definition:
io_format.h:36
io_format.h
src
lib
IO
io_format_gauge.h
Generated on Thu Mar 19 2020 10:28:23 for Bridge++ by
1.8.6