9 #undef LOVLAPMS_RSD_CHK
42 LatticeFermion tmp1,
tmp2;
62 tmp1 = Gamma(
G5) *
psi;
86 LatticeFermion
tmp3 = tmp1;
128 #ifdef LOVLAPMS_RSD_CHK
129 LatticeFermion b_vec = tmp1;
162 Real epsilon_normalise =
epsilon*(Real(1)-
m_q)/Real(2);
165 Real epsilon_target = epsilon_normalise/(Real(2) + epsilon_normalise);
168 Real rsdcg_sq = epsilon_target*epsilon_target;
222 for(
k = 0;
k <=
MaxCG && ! convP ; ++
k) {
242 d = innerProductReal(
p[
isz], Ap);
267 if (
s !=
isz && !convsP[
s]) {
271 z[
iz][
s] = z0*z1*bp ;
273 bs[
s] =
b *
z[
iz][
s] / z0;
283 #ifdef LOVLAPMS_RSD_CHK
313 if(
s !=
isz && !convsP[
s]) {
417 bool btmp = toBool(ztmp <
rsd_sq);
418 convP = convP & btmp;
424 #ifdef LOVLAPMS_RSD_CHK
426 LatticeFermion tmp_normcheck;
427 (*MdagM)(tmp_normcheck,
x,
PLUS);
429 tmp_normcheck -= b_vec;
430 Double norm2check = norm2(tmp_normcheck);
432 QDPIO::cout <<
"|| b - (Q_isz + MM)x || = " << norm2check <<
" accum = " << check_ztmp << std::endl;
451 if (
k > 0 && !convP) {
457 chi_sq_diff = norm2(tmp1);
460 QDPIO::cout <<
"Iter " <<
k <<
" || delta Sgn() || " << sqrt(chi_sq_diff) << std::endl;
463 bool btmp = toBool(chi_sq_diff < chi_sq_new);
466 if (! btmp && convP) {
477 QDPIO::cout <<
"Overlap Inner Solve (lovlapms): " <<
k <<
" iterations " << std::endl;
486 tmp1 = Gamma(
G5) *
chi;
Primary include file for CHROMA library code.
const multi1d< LatticeFermion > EigVec
const multi1d< Real > EigValFunc
const multi1d< Real > resP
void operator()(LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
Apply the operator onto a source std::vector.
const multi1d< Real > rootQ
Gramm-Schmidt orthogonolization.
void GramSchm(multi1d< LatticeFermion > &psi, const int Npsi, const multi1d< LatticeFermion > &vec, const int Nvec, const Subset &sub)
Gramm-Schmidt orthogonolization.
Internal Overlap-pole operator.
int epsilon(int i, int j, int k)
BinaryReturn< C1, C2, FnInnerProduct >::Type_t innerProduct(const QDPSubType< T1, C1 > &s1, const QDPType< T2, C2 > &s2)
Asqtad Staggered-Dirac operator.
QDP_error_exit("too many BiCG iterations", n_count, rsd_sq, cp, c, re_rvr, im_rvr, re_a, im_a, re_b, im_b)
multi1d< LatticeFermion > chi(Ncb)
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double