11 int main(
int argc,
char **argv)
17 const int foo[] = {2,2,2,2};
18 multi1d<int> nrow(
Nd);
20 Layout::setLattSize(nrow);
23 XMLFileWriter xml(
"t_preccfz_opt.xml");
24 push(xml,
"t_preccfz_opt");
26 multi1d<LatticeColorMatrix>
u(
Nd);
27 for(
int m=0;
m <
u.size(); ++
m)
39 p.OverMass = Real(1.4);
60 bool isLastZeroP = (
p.RatPolyDeg % 2 == 0 ) ?
true :
false;
80 multi1d<LatticeFermion> chi5a(
N5), chi5b(
N5), psi5(
N5), tmp1(
N5);
81 for(
int m=0;
m <
N5; ++
m)
87 D_qdp(chi5a, psi5,
PLUS);
88 D_opt(chi5b, psi5,
PLUS);
98 QDPIO::cout <<
"Test eo-prec and opt eo-prec CFZ linop PLUS" << std::endl
99 <<
"|qCFZ|^2 = " << norm2(chi5a) << std::endl
100 <<
"|oCFZ|^2 = " << norm2(chi5b) << std::endl
101 <<
"|qCFZ - oCFZ|^2 = " << norm2(tmp1) << std::endl;
103 D_qdp(chi5a, psi5,
MINUS);
104 D_opt(chi5b, psi5,
MINUS);
114 QDPIO::cout <<
"Test eo-prec and opt eo-prec CFZ linop MINUS" << std::endl
115 <<
"|qCFZ|^2 = " << norm2(chi5a) << std::endl
116 <<
"|oCFZ|^2 = " << norm2(chi5b) << std::endl
117 <<
"|qCFZ - oCFZ|^2 = " << norm2(tmp1) << std::endl;
120 QDPIO::cout <<
"\n\n\nDone" << std::endl;
Primary include file for CHROMA in application codes.
5D continued fraction overlap action (Borici,Wenger, Edwards)
void init(Real &scale_fac, multi1d< Real > &alpha, multi1d< Real > &beta) const
Helper in construction.
int size(void) const
Expected length of array index.
virtual FermState< T, P, Q > * createState(const Q &q) const
Given links (coordinates Q) create the state needed for the linear operators.
Class for counted reference semantics.
Optimized Even-odd prec. 5D continued fraction linop.
Overlap connection state.
Concrete class for all fermionic actions with trivial boundary conditions.
Even-odd prec. 5D continued fraction linop.
static const LatticeInteger & beta(const int dim)
static const LatticeInteger & alpha(const int dim)
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void initialize(int *argc, char ***argv)
Chroma initialisation routine.
void finalize(void)
Chroma finalization routine.
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
Params for 5D overlap ferm acts.
int main(int argc, char **argv)