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

cps::AlgHmd Class Reference
[Algorithms]

A virtual base class for implementing Molecular Dynamics algorithms. More...

#include <alg_hmd.h>

Inherits cps::Alg.

Inherited by cps::AlgHmcPhi, cps::AlgHmcQPQ, cps::AlgHmcRHMC, cps::AlgHmdR, and cps::AlgHmdR2.

List of all members.

Public Member Functions

 AlgHmd (Lattice &latt, CommonArg *c_arg, HmdArg *arg)
virtual ~AlgHmd ()
virtual Float run ()=0
 Performs a single trajectory of the HMD algorithm.

Protected Attributes

HmdArghmd_arg
 A structure containing the algorithm parameters.
int g_size
 The size of the gauge field.
int Ncb
 The number of parities on which the pseudofermion field is defined.
Matrixmom
 The (traceless antihermitian) conjugate momentum field.
int alloc_sum


Detailed Description

A virtual base class for implementing Molecular Dynamics algorithms.

Todo:
The derived classes should inherit more.

Definition at line 32 of file alg_hmd.h.


Constructor & Destructor Documentation

cps::AlgHmd::AlgHmd Lattice latt,
CommonArg c_arg,
HmdArg arg
 

Allocates memory for all the fields used and copies parameters to internal locations.

Parameters:
latt The lattice on which run the HMD algorithm.
c_arg The common argument structure for all algorithms.
arg The algorithm parameters.

Definition at line 56 of file alg_hmd.C.

References cps::ERR, cps::Lattice::FchkbEvl(), cps::Float, cps::Verbose::Func(), g_size, cps::GJP, cps::Lattice::GsiteSize(), hmd_arg, mom, Ncb, cps::Error::Pointer(), cps::Verbose::Smalloc(), cps::smalloc(), cps::GlobalJobParameter::VolNodeSites(), and cps::VRB.

cps::AlgHmd::~AlgHmd  )  [virtual]
 

Frees allocated memory.

Definition at line 97 of file alg_hmd.C.

References cps::Verbose::Func(), mom, cps::sfree(), cps::Verbose::Sfree(), and cps::VRB.


Member Function Documentation

virtual Float cps::AlgHmd::run  )  [pure virtual]
 

Performs a single trajectory of the HMD algorithm.

Implemented in cps::AlgHmcPhi, cps::AlgHmcQPQ, cps::AlgHmcRHMC, cps::AlgHmdR, and cps::AlgHmdR2.


Member Data Documentation

int cps::AlgHmd::alloc_sum [protected]
 

Definition at line 58 of file alg_hmd.h.

int cps::AlgHmd::g_size [protected]
 

The size of the gauge field.

The size of the gauge field on the local lattice in terms of the total number of floating point numbers.

Definition at line 43 of file alg_hmd.h.

Referenced by AlgHmd().

HmdArg* cps::AlgHmd::hmd_arg [protected]
 

A structure containing the algorithm parameters.

Definition at line 40 of file alg_hmd.h.

Referenced by AlgHmd().

Matrix* cps::AlgHmd::mom [protected]
 

The (traceless antihermitian) conjugate momentum field.

This is i times the actual conjugate momentum.

Definition at line 53 of file alg_hmd.h.

Referenced by AlgHmd(), and ~AlgHmd().

int cps::AlgHmd::Ncb [protected]
 

The number of parities on which the pseudofermion field is defined.

Definition at line 50 of file alg_hmd.h.

Referenced by AlgHmd().


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