10 int main(
int argc,
char **argv)
16 const int foo[] = {2,2,2,2};
17 multi1d<int> nrow(
Nd);
19 Layout::setLattSize(nrow);
22 XMLFileWriter xml(
"t_spprod.xml");
28 write(xml,
"nrow", nrow);
33 LatticePropagator ppsi;
34 LatticePropagator pchi;
35 LatticePropagator pa1;
38 printf(
"Fill fermions with gaussians and spprod\n");
42 push(xml,
"here_is_psi");
43 write(xml,
"fpsi", fpsi);
47 for(
int n = 0;
n < Ns*Ns; ++
n)
50 fa1[rb[0]] = Gamma(
n) * fpsi;
52 printf(
"print the fa1 fields in direction n= %d\n",
n);
56 push(xml,
"fa1_is_spin");
57 write(xml,
"fa1", fa1);
63 printf(
"Fill fermions with gaussians and spprod/trace\n");
68 for(
int n = 0;
n < Ns*Ns; ++
n)
72 printf(
"print the fa1 fields in direction n= %d\n",
n);
73 push(xml,
"Fermion_inner_product");
81 printf(
"Fill propagators with gaussians and spprod/trace\n");
86 for(
int n = 0;
n < Ns*Ns; ++
n)
90 printf(
"print the pa1 fields in direction n= %d\n",
n);
91 push(xml,
"Propagator_inner_product");
Primary include file for CHROMA in application codes.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
BinaryReturn< C1, C2, FnInnerProduct >::Type_t innerProduct(const QDPSubType< T1, C1 > &s1, const QDPType< T2, C2 > &s2)
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
int main(int argc, char **argv)