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

cps::AlgIntAB Class Reference

#include <alg_int.h>

Inherits cps::AlgInt.

Inherited by cps::AlgIntCampostrini, cps::AlgIntLeap, cps::AlgIntOmelyan, cps::AlgIntOmelyan44, cps::AlgIntOmelyan45, and cps::AlgIntSum.

List of all members.

Public Member Functions

 AlgIntAB (AlgInt &A, AlgInt &B, IntABArg &)
virtual ~AlgIntAB ()
void heatbath ()
 run method evolves the integrator
Float energy ()
 evolve method evolves the integrator
virtual void evolve (Float dt, int steps)=0
 method to calculate energy (if necessary)
void cost (CgStats *)
 method to reverse the direction of evolution (i.e. flip momenta)
void reverse ()
 Dummy method.
void init ()
 AlgIntAB factory.

Static Public Member Functions

AlgIntABCreate (AlgInt &A, AlgInt &B, IntABArg &ab_arg)
void Destroy (AlgIntAB &)

Protected Attributes

AlgIntA
AlgIntB
int A_steps
int B_steps
int A_calls
int B_calls
IntegratorLevel level
 Is this the top level integrator?
unsigned long step_cnt
IntABArgab_arg


Constructor & Destructor Documentation

cps::AlgIntAB::AlgIntAB AlgInt A,
AlgInt B,
IntABArg
 

Definition at line 25 of file alg_int_ab.C.

References A, cps::IntABArg::A_steps, A_steps, ab_arg, B, cps::IntABArg::B_steps, B_steps, cps::Verbose::Func(), cps::IntABArg::level, level, and cps::VRB.

cps::AlgIntAB::~AlgIntAB  )  [virtual]
 

Definition at line 39 of file alg_int_ab.C.


Member Function Documentation

void cps::AlgIntAB::cost CgStats  )  [virtual]
 

method to reverse the direction of evolution (i.e. flip momenta)

Implements cps::AlgInt.

Definition at line 54 of file alg_int_ab.C.

References A, B, and cps::AlgInt::cost().

Referenced by cps::AlgHmc::run().

AlgIntAB & cps::AlgIntAB::Create AlgInt A,
AlgInt B,
IntABArg ab_arg
[static]
 

Definition at line 69 of file alg_int_ab.C.

References cps::ERR, cps::Verbose::Func(), cps::Error::General(), cps::IntABArg::type, and cps::VRB.

void cps::AlgIntAB::Destroy AlgIntAB  )  [static]
 

Definition at line 94 of file alg_int_ab.C.

Float cps::AlgIntAB::energy  )  [virtual]
 

evolve method evolves the integrator

Implements cps::AlgInt.

Definition at line 50 of file alg_int_ab.C.

References A, B, cps::AlgInt::energy(), and cps::Float.

Referenced by cps::AlgHmc::run().

virtual void cps::AlgIntAB::evolve Float  dt,
int  steps
[pure virtual]
 

method to calculate energy (if necessary)

Implements cps::AlgInt.

Implemented in cps::AlgIntLeap, cps::AlgIntOmelyan, cps::AlgIntCampostrini, cps::AlgIntOmelyan44, cps::AlgIntOmelyan45, and cps::AlgIntSum.

Referenced by cps::AlgHmc::run().

void cps::AlgIntAB::heatbath  )  [virtual]
 

run method evolves the integrator

Implements cps::AlgInt.

Definition at line 44 of file alg_int_ab.C.

References A, B, and cps::AlgInt::heatbath().

Referenced by cps::AlgHmc::run().

void cps::AlgIntAB::init  )  [virtual]
 

AlgIntAB factory.

Implements cps::AlgInt.

Definition at line 64 of file alg_int_ab.C.

References A, B, and cps::AlgInt::init().

Referenced by cps::AlgHmc::run().

void cps::AlgIntAB::reverse  )  [virtual]
 

Dummy method.

Implements cps::AlgInt.

Definition at line 59 of file alg_int_ab.C.

References A, B, and cps::AlgInt::reverse().

Referenced by cps::AlgHmc::run().


Member Data Documentation

AlgInt* cps::AlgIntAB::A [protected]
 

Definition at line 75 of file alg_int.h.

Referenced by AlgIntAB(), cost(), energy(), heatbath(), init(), and reverse().

int cps::AlgIntAB::A_calls [protected]
 

Definition at line 78 of file alg_int.h.

int cps::AlgIntAB::A_steps [protected]
 

Definition at line 77 of file alg_int.h.

Referenced by AlgIntAB().

IntABArg* cps::AlgIntAB::ab_arg [protected]
 

Definition at line 82 of file alg_int.h.

Referenced by AlgIntAB().

AlgInt* cps::AlgIntAB::B [protected]
 

Definition at line 76 of file alg_int.h.

Referenced by AlgIntAB(), cost(), energy(), heatbath(), init(), and reverse().

int cps::AlgIntAB::B_calls [protected]
 

Definition at line 78 of file alg_int.h.

int cps::AlgIntAB::B_steps [protected]
 

Definition at line 77 of file alg_int.h.

Referenced by AlgIntAB().

IntegratorLevel cps::AlgIntAB::level [protected]
 

Is this the top level integrator?

Definition at line 80 of file alg_int.h.

Referenced by AlgIntAB().

unsigned long cps::AlgIntAB::step_cnt [protected]
 

Definition at line 81 of file alg_int.h.


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