29 namespace RandZ2WallQuarkSourceConstEnv
74 XMLReader paramtop(xml, path);
77 read(paramtop,
"version", version);
85 QDPIO::cerr << __func__ <<
": parameter version " << version
86 <<
" unsupported." << std::endl;
117 write(xml,
"version", version);
130 QDPIO::cout <<
"Rand Z2 Wall source" << std::endl;
143 LatticePropagator quark_source;
145 multi1d<LatticeColorVector> tmp_color_vec(Nc);
152 ar = where( rnd>0.5, LatticeReal(sqrt(0.5)), LatticeReal(-sqrt(0.5)) );
154 ai = where( rnd>0.5, LatticeReal(sqrt(0.5)), LatticeReal(-sqrt(0.5)) );
157 for(
int i=0;
i<Nc;
i++) {
158 tmp_color_vec[
i] =
zero;
159 pokeColor(tmp_color_vec[
i],
z,
i);
162 for(
int color_source = 0; color_source < Nc; ++color_source)
164 QDPIO::cout <<
"color = " << color_source << std::endl;
166 LatticeColorVector src_color_vec =
zero;
170 src_color_vec = where( Layout::latticeCoordinate(
mu) == slice,
171 tmp_color_vec[color_source],
172 LatticeColorVector(
zero));
174 for(
int spin_source = 0; spin_source < Ns; ++spin_source)
176 QDPIO::cout <<
"spin = " << spin_source << std::endl;
Primary include file for CHROMA library code.
Base class for quark source construction.
Random Z2 wall source construction.
T operator()(const multi1d< LatticeColorMatrix > &u) const
Construct the source.
void CvToFerm(const LatticeColorVectorF &a, LatticeFermionF &b, int spin_index)
Convert (insert) a LatticeColorVector into a LatticeFermion.
void FermToProp(const LatticeFermionF &a, LatticePropagatorF &b, int color_index, int spin_index)
Insert a LatticeFermion into a LatticePropagator.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void savern(int iseed[4])
static bool registered
Local registration flag.
const std::string name
Name to be used.
std::string getName()
Return the name.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
multi1d< LatticeFermion > chi(Ncb)
Random Z2 wall source construction.
Factory for producing quark prop sources.
Random Z2 wall source parameters.
void writeXML(XMLWriter &in, const std::string &path) const