Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
action_G_Rectangle.h
Go to the documentation of this file.
1
14
#ifndef ACTION_G_RECTANGLE_INCLUDED
15
#define ACTION_G_RECTANGLE_INCLUDED
16
17
#include "
action.h
"
18
#include "
staples.h
"
19
#include "
shiftField_lex.h
"
20
21
#include "
bridgeIO.h
"
22
using
Bridge::vout
;
23
25
35
//- parameters class
36
class
Parameters_Action_G_Rectangle
:
virtual
public
Parameters
37
{
38
public
:
39
Parameters_Action_G_Rectangle
();
40
};
41
//- end
42
43
class
Action_G_Rectangle
:
public
Action
44
{
45
private
:
46
double
m_beta
;
47
double
m_c_plaq
;
48
double
m_c_rect
;
49
std::string
m_label
;
50
Field
m_force
;
51
52
Field_G
*
m_U
;
53
int
m_status_linkv
;
54
Staples
m_staple
;
55
ShiftField_lex
m_shift
;
56
57
RandomNumbers
*
m_rand
;
58
59
public
:
60
Action_G_Rectangle
()
61
:
Action
() {}
62
63
~Action_G_Rectangle
() {}
64
65
void
set_parameters
(
const
Parameters
& params);
66
void
set_parameters
(
double
beta,
double
c_plaq,
double
c_rect);
67
68
void
set_label
(std::string label)
69
{
70
m_label
= label;
71
vout
.
detailed
(
m_vl
,
" label: %s\n"
,
m_label
.c_str());
72
}
73
74
std::string
get_label
()
75
{
76
return
m_label
;
77
}
78
79
void
set_config
(
Field
*U)
80
{
81
m_U
= (
Field_G
*)U;
82
}
83
84
void
notify_linkv
()
85
{
86
m_status_linkv
= 0;
87
}
88
89
double
langevin
(
RandomNumbers
*);
90
91
double
calcH
();
92
93
const
Field
force
();
94
};
95
#endif
src
Action
action_G_Rectangle.h
Generated on Tue Jul 23 2013 10:48:48 for Bridge++ by
1.8.3.1