CHROMA
|
Test 4d 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_linops (XMLWriter &xml_out, const std::string &prefix, const EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AU) |
Check linops. More... | |
multi1d< LatticeColorMatrix > | deriv (const EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const LatticeFermion &chi, const 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 EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &AP, const UnprecLinearOperator< 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 4d fermion actions.
Definition in file t_precact_4d.cc.
void check_derivs | ( | XMLWriter & | xml_out, |
const std::string & | prefix, | ||
const EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, | ||
const UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AU | ||
) |
Check linops.
Definition at line 189 of file t_precact_4d.cc.
References Chroma::chi(), deriv(), Chroma::gaussian(), m, Chroma::MINUS, 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 EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, | ||
const UnprecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AU | ||
) |
Check linops.
Definition at line 62 of file t_precact_4d.cc.
References Chroma::chi(), Chroma::gaussian(), Chroma::InlinePropAndMatElemDistillation2Env::local::innerProduct(), Chroma::MINUS, 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_4d.cc.
References Chroma::gaussian(), Chroma::SystemSolverResults_t::n_count, Chroma::pop(), Chroma::push(), Chroma::write(), and Chroma::zero.
Referenced by main().
multi1d<LatticeColorMatrix> deriv | ( | const EvenOddPrecLinearOperator< LatticeFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & | AP, |
const LatticeFermion & | chi, | ||
const 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 141 of file t_precact_4d.cc.
References Chroma::chi(), Chroma::isign, Chroma::MINUS, Chroma::PLUS, Chroma::psi, tmp2, and tmp3.
Referenced by check_derivs(), Chroma::CloverTermBase< T, U >::deriv(), Chroma::DiffLinearOperatorArray< T, P, Q >::deriv(), Chroma::WilsonDslashBase< T, P, Q >::deriv(), Chroma::DiffLinearOperator< T, P, Q >::deriv(), Chroma::DiffLinearOperator< T, P, Q >::derivMultipole(), and Chroma::DslashLinearOperator< T, P, Q >::derivMultipole().
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_4d.cc.
References Chroma::WilsonTypeFermActsEnv::registerAll().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 325 of file t_precact_4d.cc.
References Test_input_t::action_eo, Test_input_t::action_un, Test_input_t::cfg, check_derivs(), check_linops(), check_qprop(), 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 277 of file t_precact_4d.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 286 of file t_precact_4d.cc.
References Test_input_t::action_eo, Test_input_t::action_un, Test_input_t::cfg, Test_input_t::param, and Chroma::read().