#include <mom.h>
Public Member Functions | |
| Mom () | |
| virtual | ~Mom () |
| void | Init (MomArg *arg) |
| Initialisation of parameters. | |
| void | run (void) |
| Calculation of the phases. | |
| Complex | fact (int imom, int *s) |
| Get a particular phase. | |
The phases exp(ip.x) are computed where x is the lattice site coordinates relative to some source point and p is a momentum. The momentum is zero in a chosen direction of propagation. The values of the other momentum components
range from 0 to a chosen maximum in lattice units i.e. in units of
where L is the size of the lattice in the
direction. If desired, momenta of the same magnitude can be averaged (this should only be done if the lattice sizes are equal).
Each different momentum used is assigned a number. These numbers and the corresponding momenutm components are written to a file called mom_table.log.
Definition at line 60 of file mom.h.
|
|
Definition at line 33 of file mom.C. References cps::Verbose::Func(), and cps::VRB. |
|
|
Definition at line 42 of file mom.C. References cps::Verbose::Func(), cps::sfree(), cps::Verbose::Sfree(), and cps::VRB. |
|
||||||||||||
|
Get a particular phase.
Definition at line 241 of file mom.C. References cps::Complex, cps::Verbose::Func(), and cps::VRB. |
|
|
Initialisation of parameters.
Definition at line 60 of file mom.C. References cps::Complex, cps::MomArg::deg, cps::MomArg::dir, cps::ERR, cps::Verbose::Func(), cps::GJP, cps::MomArg::max_p1, cps::MomArg::max_p2, cps::MomArg::max_p3, cps::MomArg::no_of_momenta, cps::Error::Pointer(), cps::Verbose::Smalloc(), cps::smalloc(), cps::MomArg::src_begin, cps::MomArg::src_end, cps::GlobalJobParameter::Tnodes(), cps::GlobalJobParameter::TnodeSites(), cps::GlobalJobParameter::VolNodeSites(), cps::VRB, cps::GlobalJobParameter::Xnodes(), cps::GlobalJobParameter::XnodeSites(), cps::GlobalJobParameter::Ynodes(), cps::GlobalJobParameter::YnodeSites(), cps::GlobalJobParameter::Znodes(), and cps::GlobalJobParameter::ZnodeSites(). |
|
|
Calculation of the phases. This method actually computes all the phases and stores them internally.
Definition at line 124 of file mom.C. References cps::ERR, cps::Float, cps::Verbose::Func(), cps::Error::General(), cps::GJP, cps::Rcomplex::imag(), cps::Rcomplex::real(), cps::GlobalJobParameter::TnodeCoor(), cps::GlobalJobParameter::TnodeSites(), cps::VRB, cps::GlobalJobParameter::XnodeCoor(), cps::GlobalJobParameter::XnodeSites(), cps::GlobalJobParameter::YnodeCoor(), cps::GlobalJobParameter::YnodeSites(), cps::GlobalJobParameter::ZnodeCoor(), and cps::GlobalJobParameter::ZnodeSites(). |
1.3.9.1