CHROMA
|
Test 5d fermion actions. More...
Go to the source code of this file.
Classes | |
struct | Param_t |
Parameters for running program. More... | |
struct | Test_input_t |
Mega-structure of all input. More... | |
Functions | |
bool | linkage_hack () |
To insure linking of code, place the registered code flags here. More... | |
void | check_qprop (XMLWriter &xml_out, const std::string &prefix, const SystemSolver< LatticeFermion > &PP, const SystemSolver< LatticeFermion > &UP) |
Check Qprop. More... | |
void | check_qpropT (XMLWriter &xml_out, const std::string &prefix, const SystemSolverArray< LatticeFermion > &PP, const SystemSolverArray< LatticeFermion > &UP) |
Check QpropT. More... | |
void | check_linops (XMLWriter &xml_out, const std::string &prefix, const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const UnprecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AU) |
Check linops. More... | |
multi1d< LatticeColorMatrix > | deriv (const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const multi1d< LatticeFermion > &chi, const multi1d< LatticeFermion > &psi, enum PlusMinus isign) |
Apply the operator onto a source std::vector. More... | |
void | check_derivs (XMLWriter &xml_out, const std::string &prefix, const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const UnprecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AU) |
Check linops. More... | |
void | read (XMLReader &xml, const std::string &path, Param_t ¶m) |
Parameters for running code. More... | |
void | read (XMLReader &xml, const std::string &path, Test_input_t &input) |
int | main (int argc, char **argv) |
Test 5d fermion actions.
Definition in file t_precact_5d.cc.
void check_derivs | ( | XMLWriter & | xml_out, |
const std::string & | prefix, | ||
const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, | ||
const UnprecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AU | ||
) |
Check linops.
Definition at line 291 of file t_precact_5d.cc.
References Chroma::chi(), deriv(), Chroma::gaussian(), m, Chroma::MINUS, N5, Nd, Chroma::PLUS, Chroma::pop(), Chroma::psi, Chroma::push(), Chroma::write(), and Chroma::zero.
Referenced by main().
void check_linops | ( | XMLWriter & | xml_out, |
const std::string & | prefix, | ||
const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, | ||
const UnprecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AU | ||
) |
Check linops.
Definition at line 111 of file t_precact_5d.cc.
References Chroma::chi(), Chroma::gaussian(), Chroma::InlinePropAndMatElemDistillation2Env::local::innerProduct(), m, Chroma::MINUS, N5, Chroma::PLUS, Chroma::pop(), Chroma::psi, Chroma::push(), tmp2, tmp3, Chroma::write(), and Chroma::zero.
Referenced by main().
void check_qprop | ( | XMLWriter & | xml_out, |
const std::string & | prefix, | ||
const SystemSolver< LatticeFermion > & | PP, | ||
const SystemSolver< LatticeFermion > & | UP | ||
) |
Check Qprop.
Definition at line 26 of file t_precact_5d.cc.
References Chroma::gaussian(), Chroma::SystemSolverResults_t::n_count, Chroma::pop(), Chroma::push(), Chroma::write(), and Chroma::zero.
Referenced by main().
void check_qpropT | ( | XMLWriter & | xml_out, |
const std::string & | prefix, | ||
const SystemSolverArray< LatticeFermion > & | PP, | ||
const SystemSolverArray< LatticeFermion > & | UP | ||
) |
Check QpropT.
Definition at line 66 of file t_precact_5d.cc.
References Chroma::gaussian(), n, N5, Chroma::SystemSolverResults_t::n_count, Chroma::pop(), Chroma::push(), Chroma::SystemSolverArray< T >::size(), Chroma::write(), and Chroma::zero.
Referenced by main().
multi1d<LatticeColorMatrix> deriv | ( | const EvenOddPrecLinearOperatorArray< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, |
const multi1d< LatticeFermion > & | chi, | ||
const multi1d< LatticeFermion > & | psi, | ||
enum PlusMinus | isign | ||
) |
Apply the operator onto a source std::vector.
User should make sure deriv routines do a resize
Definition at line 239 of file t_precact_5d.cc.
References Chroma::chi(), Chroma::isign, Chroma::MINUS, Chroma::PLUS, Chroma::psi, tmp2, and tmp3.
Referenced by check_derivs().
bool linkage_hack | ( | ) |
To insure linking of code, place the registered code flags here.
This is the bit of code that dictates what fermacts are in use
Definition at line 17 of file t_precact_5d.cc.
References Chroma::WilsonTypeFermActsEnv::registerAll().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 437 of file t_precact_5d.cc.
References Test_input_t::action_eo, Test_input_t::action_un, Test_input_t::cfg, check_derivs(), check_linops(), check_qprop(), check_qpropT(), Chroma::finalize(), Chroma::gaugeStartup(), Chroma::getXMLInputFileName(), Chroma::getXMLOutputInstance(), Chroma::initialize(), Chroma::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >::Instance(), Param_t::invParam, linkage_hack(), Chroma::MesPlq(), Nd, Param_t::nrow, Test_input_t::param, Chroma::pop(), Chroma::proginfo(), Chroma::push(), Chroma::read(), Chroma::u, Chroma::unitarityCheck(), and Chroma::write().
void read | ( | XMLReader & | xml, |
const std::string & | path, | ||
Param_t & | param | ||
) |
Parameters for running code.
Definition at line 389 of file t_precact_5d.cc.
References Param_t::invParam, Param_t::nrow, Chroma::read(), and Chroma::readXMLGroup().
void read | ( | XMLReader & | xml, |
const std::string & | path, | ||
Test_input_t & | input | ||
) |
Definition at line 398 of file t_precact_5d.cc.
References Test_input_t::action_eo, Test_input_t::action_un, Test_input_t::cfg, Test_input_t::param, and Chroma::read().