CHROMA
|
Rect gauge action. More...
#include <rect_gaugeact.h>
Public Member Functions | |
RectGaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const Real &coeff_) | |
Backward compatibility: More... | |
RectGaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const Real &coeff_s_, const Real &coeff_t1_, const Real &coeff_t2_, const bool no_temporal_2link_, const AnisoParam_t &aniso_) | |
General CreateGaugeState<P,Q> More... | |
RectGaugeAct (Handle< CreateGaugeState< P, Q > > cgs_, const RectGaugeActParams &p) | |
Read rectangle coefficient from a param struct. More... | |
const Set & | getSet () const |
Return the set on which the gauge action is defined. More... | |
void | staple (LatticeColorMatrix &result, const Handle< GaugeState< P, Q > > &state, int mu, int cb) const |
Compute staple. More... | |
void | deriv (multi1d< LatticeColorMatrix > &result, const Handle< GaugeState< P, Q > > &state) const |
Compute dS/dU. More... | |
void | derivSpatial (multi1d< LatticeColorMatrix > &result, const Handle< GaugeState< P, Q > > &state) const |
compute spatial dS/dU given a time direction More... | |
void | derivTemporal (multi1d< LatticeColorMatrix > &result, const Handle< GaugeState< P, Q > > &state) const |
compute spatial dS/dU given a time direction More... | |
Double | S (const Handle< GaugeState< P, Q > > &state) const |
Compute the actions. More... | |
Double | spatialS (const Handle< GaugeState< P, Q > > &state) const |
Compute the spatial part of the action given a time direction. More... | |
Double | temporalS (const Handle< GaugeState< P, Q > > &state) const |
Compute the temporal part of the action given a time direction. More... | |
const CreateGaugeState< P, Q > & | getCreateState () const |
Produce a gauge create state object. More... | |
~RectGaugeAct () | |
Destructor is automatic. More... | |
const Real | getCoeffS (void) const |
const Real | getCoeffT1 (void) const |
const Real | getCoeffT2 (void) const |
bool | anisoP () const |
Is anisotropy used? More... | |
const Real | anisoFactor () const |
Anisotropy factor. More... | |
int | tDir () const |
Anisotropic direction. More... | |
bool | noTemporal21LoopsP (void) const |
Public Member Functions inherited from Chroma::LinearGaugeAction | |
virtual | ~LinearGaugeAction () |
Virtual destructor to help with cleanup;. More... | |
Public Member Functions inherited from Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > | |
virtual | ~GaugeAction () |
Virtual destructor to help with cleanup;. More... | |
virtual GaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * | createState (const multi1d< LatticeColorMatrix > &q) const |
Given links, create the state. More... | |
virtual const GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | getGaugeBC () const |
Return the gauge BC object for this action. More... | |
Protected Member Functions | |
RectGaugeAct () | |
Partial construcor. More... | |
void | operator= (const RectGaugeAct &a) |
Hide assignment. More... | |
Private Member Functions | |
void | deriv_part (int mu, int nu, Real c_munu, multi1d< LatticeColorMatrix > &ds_u, const multi1d< LatticeColorMatrix > &u) const |
void | S_part (int mu, int nu, Real c, LatticeReal &lgimp, const multi1d< LatticeColorMatrix > &u) const |
Private Attributes | |
Handle< CreateGaugeState< P, Q > > | cgs |
RectGaugeActParams | params |
Additional Inherited Members | |
Public Types inherited from Chroma::LinearGaugeAction | |
typedef multi1d< LatticeColorMatrix > | P |
typedef multi1d< LatticeColorMatrix > | Q |
Chroma::RectGaugeAct::RectGaugeAct | ( | Handle< CreateGaugeState< P, Q > > | cgs_, |
const Real & | coeff_ | ||
) |
Backward compatibility:
Definition at line 639 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::AnisoParam_t::anisoP, Chroma::RectGaugeActParams::coeff_s, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, Chroma::END_CODE(), Nd, Chroma::RectGaugeActParams::no_temporal_2link, Chroma::AnisoParam_t::nu, params, Chroma::START_CODE(), Chroma::AnisoParam_t::t_dir, and Chroma::AnisoParam_t::xi_0.
Chroma::RectGaugeAct::RectGaugeAct | ( | Handle< CreateGaugeState< P, Q > > | cgs_, |
const Real & | coeff_s_, | ||
const Real & | coeff_t1_, | ||
const Real & | coeff_t2_, | ||
const bool | no_temporal_2link_, | ||
const AnisoParam_t & | aniso_ | ||
) |
General CreateGaugeState<P,Q>
Definition at line 656 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::AnisoParam_t::anisoP, Chroma::RectGaugeActParams::coeff_s, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, Chroma::END_CODE(), Chroma::RectGaugeActParams::no_temporal_2link, params, Chroma::START_CODE(), and Chroma::AnisoParam_t::xi_0.
Chroma::RectGaugeAct::RectGaugeAct | ( | Handle< CreateGaugeState< P, Q > > | cgs_, |
const RectGaugeActParams & | p | ||
) |
Read rectangle coefficient from a param struct.
Definition at line 682 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::AnisoParam_t::anisoP, Chroma::RectGaugeActParams::coeff_s, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, Chroma::END_CODE(), Chroma::p, params, Chroma::START_CODE(), and Chroma::AnisoParam_t::xi_0.
|
inline |
Destructor is automatic.
Definition at line 115 of file rect_gaugeact.h.
|
inlineprotected |
Partial construcor.
Definition at line 134 of file rect_gaugeact.h.
|
inline |
Anisotropy factor.
Definition at line 126 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::aniso, params, and Chroma::AnisoParam_t::xi_0.
|
inline |
Is anisotropy used?
Definition at line 123 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::aniso, Chroma::AnisoParam_t::anisoP, and params.
|
virtual |
Compute dS/dU.
Reimplemented from Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 266 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_s, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, deriv_part(), derivSpatial(), derivTemporal(), Chroma::END_CODE(), Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >::getGaugeBC(), mu, Nd, Chroma::RectGaugeActParams::no_temporal_2link, nu, params, Chroma::START_CODE(), Chroma::state, Chroma::AnisoParam_t::t_dir, Chroma::RectGaugeActEnv::time_spent, Chroma::u, Chroma::zero, and Chroma::GaugeBC< P, Q >::zero().
Referenced by main().
|
inlineprivate |
Definition at line 133 of file rect_gaugeact.cc.
References BACKWARD, Chroma::END_CODE(), FORWARD, mu, nu, Chroma::START_CODE(), Chroma::tmp, tmp2, and Chroma::u.
Referenced by deriv(), derivSpatial(), and derivTemporal().
void Chroma::RectGaugeAct::derivSpatial | ( | multi1d< LatticeColorMatrix > & | result, |
const Handle< GaugeState< P, Q > > & | state | ||
) | const |
compute spatial dS/dU given a time direction
Definition at line 343 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_s, deriv_part(), Chroma::END_CODE(), Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >::getGaugeBC(), mu, Nd, nu, params, Chroma::START_CODE(), Chroma::state, Chroma::AnisoParam_t::t_dir, Chroma::u, Chroma::zero, and Chroma::GaugeBC< P, Q >::zero().
Referenced by deriv().
void Chroma::RectGaugeAct::derivTemporal | ( | multi1d< LatticeColorMatrix > & | result, |
const Handle< GaugeState< P, Q > > & | state | ||
) | const |
compute spatial dS/dU given a time direction
Definition at line 392 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, deriv_part(), Chroma::END_CODE(), Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >::getGaugeBC(), mu, Nd, Chroma::RectGaugeActParams::no_temporal_2link, nu, params, Chroma::START_CODE(), Chroma::state, Chroma::AnisoParam_t::t_dir, Chroma::u, Chroma::zero, and Chroma::GaugeBC< P, Q >::zero().
Referenced by deriv().
|
inline |
Definition at line 118 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::coeff_s, and params.
|
inline |
Definition at line 119 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::coeff_t1, and params.
|
inline |
Definition at line 120 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::coeff_t2, and params.
|
inlinevirtual |
Produce a gauge create state object.
Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 112 of file rect_gaugeact.h.
References cgs.
|
inlinevirtual |
Return the set on which the gauge action is defined.
Defined on the even-off (red/black) set
Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 75 of file rect_gaugeact.h.
|
inline |
Definition at line 130 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::no_temporal_2link, and params.
|
inlineprotected |
Hide assignment.
Definition at line 136 of file rect_gaugeact.h.
|
virtual |
Compute the actions.
Implements Chroma::GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > >.
Definition at line 461 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_s, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, Chroma::END_CODE(), mu, Nd, Chroma::RectGaugeActParams::no_temporal_2link, nu, params, S_part(), spatialS(), Chroma::START_CODE(), Chroma::state, sum, Chroma::AnisoParam_t::t_dir, temporalS(), Chroma::u, and Chroma::zero.
Referenced by main().
|
inlineprivate |
Definition at line 581 of file rect_gaugeact.cc.
References Chroma::c, Chroma::END_CODE(), FORWARD, mu, nu, Chroma::START_CODE(), tmp2, and Chroma::u.
Referenced by S(), spatialS(), and temporalS().
Double Chroma::RectGaugeAct::spatialS | ( | const Handle< GaugeState< P, Q > > & | state | ) | const |
Compute the spatial part of the action given a time direction.
Definition at line 516 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_s, Chroma::END_CODE(), mu, Nd, nu, params, S_part(), Chroma::START_CODE(), Chroma::state, sum, Chroma::AnisoParam_t::t_dir, Chroma::u, and Chroma::zero.
Referenced by S().
|
virtual |
Compute staple.
Default version. Derived class should override this if needed.
u_staple | result ( Write ) |
state | gauge field ( Read ) |
mu | direction for staple ( Read ) |
cb | subset on which to compute ( Read ) |
Implements Chroma::LinearGaugeAction.
Definition at line 121 of file rect_gaugeact.cc.
References Chroma::END_CODE(), and Chroma::START_CODE().
|
inline |
Anisotropic direction.
Definition at line 129 of file rect_gaugeact.h.
References Chroma::RectGaugeActParams::aniso, params, and Chroma::AnisoParam_t::t_dir.
Double Chroma::RectGaugeAct::temporalS | ( | const Handle< GaugeState< P, Q > > & | state | ) | const |
Compute the temporal part of the action given a time direction.
Definition at line 543 of file rect_gaugeact.cc.
References Chroma::RectGaugeActParams::aniso, Chroma::c, Chroma::RectGaugeActParams::coeff_t1, Chroma::RectGaugeActParams::coeff_t2, Chroma::END_CODE(), mu, Nd, Chroma::RectGaugeActParams::no_temporal_2link, nu, params, S_part(), Chroma::START_CODE(), Chroma::state, sum, Chroma::AnisoParam_t::t_dir, Chroma::u, and Chroma::zero.
Referenced by S().
|
private |
Definition at line 139 of file rect_gaugeact.h.
Referenced by getCreateState().
|
private |
Definition at line 140 of file rect_gaugeact.h.
Referenced by anisoFactor(), anisoP(), deriv(), derivSpatial(), derivTemporal(), getCoeffS(), getCoeffT1(), getCoeffT2(), noTemporal21LoopsP(), RectGaugeAct(), S(), spatialS(), tDir(), and temporalS().