Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cps::AlgRandomGauge Class Reference
[Algorithms]

Produces a ramdom gauge tranfromation field. More...

#include <alg_rnd_gauge.h>

Inherits cps::Alg.

List of all members.

Public Member Functions

 AlgRandomGauge (Lattice &latt, CommonArg *c_arg)
 ~AlgRandomGauge ()
void set_theta (Float t)
 Set the rotation angle.
void run ()
 Run this algorithm.
void free ()
 Free memory allocated by this class.


Detailed Description

Produces a ramdom gauge tranfromation field.

Calculates the gauge transformation matrices for a random local gauge transformation and places them in the matrices pointed to by Lattice::fix_gauge_ptr

First a random choice is made of of one of three su(2) subgroups, which is them filled with random elements, controlled by an angle theta ( As might be expected 0 and 2pi correspond to no rotation )

Definition at line 32 of file alg_rnd_gauge.h.


Constructor & Destructor Documentation

cps::AlgRandomGauge::AlgRandomGauge Lattice latt,
CommonArg c_arg
 

Definition at line 39 of file alg_rnd_gauge.C.

References cps::Verbose::Func(), cps::GJP, cps::GlobalJobParameter::TnodeSites(), cps::VRB, cps::GlobalJobParameter::XnodeSites(), cps::GlobalJobParameter::YnodeSites(), and cps::GlobalJobParameter::ZnodeSites().

cps::AlgRandomGauge::~AlgRandomGauge  )  [inline]
 

Note:
The destructor does not free the memory allocated. Use AlgRandomGauge::free for this or Lattice::FixGaugeFree

Definition at line 70 of file alg_rnd_gauge.h.


Member Function Documentation

void cps::AlgRandomGauge::free void   )  [inline]
 

Free memory allocated by this class.

You might want to keep the gauge fixing matrices longer than the scope of this class so the memory for them isn't automaticaly freed in the destructor. (ugly, but follows convention of gauge-fixing code)

Definition at line 88 of file alg_rnd_gauge.h.

void cps::AlgRandomGauge::run  ) 
 

Run this algorithm.

Definition at line 57 of file alg_rnd_gauge.C.

References cps::Alg::AlgLattice(), cps::LatRanGen::AssignGenerator(), cps::FIX_GAUGE_LANDAU, cps::Lattice::FixGaugeAllocate(), cps::Lattice::FixGaugePtr(), cps::IFloat, cps::LRG, cps::LatRanGen::SetInterval(), and cps::LatRanGen::Urand().

void cps::AlgRandomGauge::set_theta Float  t  )  [inline]
 

Set the rotation angle.

Parameters:
t The rotation angle.

Definition at line 76 of file alg_rnd_gauge.h.


The documentation for this class was generated from the following files:
Generated on Sat Oct 10 14:11:57 2009 for Columbia Physics System by  doxygen 1.3.9.1