29 LatticeColorMatrix u_clov_1;
30 LatticeColorMatrix u_clov_2;
31 LatticeColorMatrix
tmp_1;
32 LatticeColorMatrix
tmp_2;
42 k1 = 19.0/9.0 - 55.0 * k5;
44 k2 = 1.0/36.0 - 16.0 * k5;
46 k3 = 64.0 * k5 - 32.0/45.0;
47 k4 = 1.0/15.0 - 6.0 * k5;
57 if( toBool(k1 != 0) ) {
65 u_clov_1 = k1 *
tmp_1;
71 u_clov_1 -= k1 *
tmp_1;
77 u_clov_1 += k1 *
tmp_1;
83 u_clov_1 -= k1 *
tmp_1;
99 u_clov_1 += k2 *
tmp_1;
109 u_clov_1 -= k2 *
tmp_1;
119 u_clov_1 += k2 *
tmp_1;
129 u_clov_1 -= k2 *
tmp_1;
133 if( toBool(k3!=0) ) {
143 u_clov_1 += k3 *
tmp_1;
151 u_clov_1 -= k3 *
tmp_1;
159 u_clov_1 += k3 *
tmp_1;
167 u_clov_1 -= k3 *
tmp_1;
176 u_clov_1 += k3 *
tmp_1;
184 u_clov_1 -= k3 *
tmp_1;
192 u_clov_1 += k3 *
tmp_1;
200 u_clov_1 -= k3 *
tmp_1;
204 if( toBool(k4!=0) ) {
216 u_clov_1 += k4 *
tmp_1;
226 u_clov_1 -= k4 *
tmp_1;
236 u_clov_1 += k4 *
tmp_1;
246 u_clov_1 -= k4 *
tmp_1;
257 u_clov_1 += k4 *
tmp_1;
267 u_clov_1 -= k4 *
tmp_1;
277 u_clov_1 += k4 *
tmp_1;
287 u_clov_1 -= k4 *
tmp_1;
291 if( toBool(kk5!=0) ) {
300 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
nu1],
FORWARD,
mu1),
FORWARD,
mu1),
FORWARD,
mu1),
FORWARD,
nu1),
FORWARD,
nu1);
301 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
mu1]),
FORWARD,
mu1),
FORWARD,
mu1),
FORWARD,
nu1),
FORWARD,
nu1),
FORWARD,
nu1);
307 u_clov_1 += kk5 *
tmp_1;
313 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
nu1]),
FORWARD,
mu1),
FORWARD,
mu1),
FORWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
314 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(shift(adj(
u[
nu1]),
FORWARD,
mu1),
FORWARD,
mu1),
FORWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
315 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
mu1]),
FORWARD,
mu1),
FORWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
321 u_clov_1 -= kk5 *
tmp_1;
327 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
nu1]),
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
328 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(shift(adj(
u[
nu1]),
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
329 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(shift(
u[
mu1],
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
330 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
mu1],
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
nu1),
BACKWARD,
nu1),
BACKWARD,
nu1);
335 u_clov_1 += kk5 *
tmp_1;
342 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
nu1],
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
mu1),
FORWARD,
nu1),
FORWARD,
nu1);
343 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(shift(
u[
mu1],
BACKWARD,
mu1),
BACKWARD,
mu1),
BACKWARD,
mu1),
FORWARD,
nu1),
FORWARD,
nu1),
FORWARD,
nu1);
344 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
mu1],
BACKWARD,
mu1),
BACKWARD,
mu1),
FORWARD,
nu1),
FORWARD,
nu1),
FORWARD,
nu1);
349 u_clov_1 -= kk5 *
tmp_1;
359 if( toBool(k1!=0) ) {
365 u_clov_2 = k1 *
tmp_1;
371 u_clov_2 -= k1 *
tmp_1;
377 u_clov_2 += k1 *
tmp_1;
383 u_clov_2 -= k1 *
tmp_1;
387 if( toBool(k2!=0) ) {
397 u_clov_2 += k2 *
tmp_1;
407 u_clov_2 -= k2 *
tmp_1;
417 u_clov_2 += k2 *
tmp_1;
427 u_clov_2 -= k2 *
tmp_1;
431 if( toBool(k3!=0) ) {
439 u_clov_2 += k3 *
tmp_1;
447 u_clov_2 -= k3 *
tmp_1;
455 u_clov_2 += k3 *
tmp_1;
463 u_clov_2 -= k3 *
tmp_1;
472 u_clov_2 += k3 *
tmp_1;
480 u_clov_2 -= k3 *
tmp_1;
488 u_clov_2 += k3 *
tmp_1;
496 u_clov_2 -= k3 *
tmp_1;
500 if( toBool(k4!=0) ) {
510 u_clov_2 += k4 *
tmp_1;
520 u_clov_2 -= k4 *
tmp_1;
530 u_clov_2 += k4 *
tmp_1;
540 u_clov_2 -= k4 *
tmp_1;
551 u_clov_2 += k4 *
tmp_1;
561 u_clov_2 -= k4 *
tmp_1;
571 u_clov_2 += k4 *
tmp_1;
581 u_clov_2 -= k4 *
tmp_1;
585 if( toBool(kk5!=0) ) {
592 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
nu2],
FORWARD,
mu2),
FORWARD,
mu2),
FORWARD,
mu2),
FORWARD,
nu2),
FORWARD,
nu2);
593 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
mu2]),
FORWARD,
mu2),
FORWARD,
mu2),
FORWARD,
nu2),
FORWARD,
nu2),
FORWARD,
nu2);
599 u_clov_2 += kk5 *
tmp_1;
605 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
nu2]),
FORWARD,
mu2),
FORWARD,
mu2),
FORWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
606 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(shift(adj(
u[
nu2]),
FORWARD,
mu2),
FORWARD,
mu2),
FORWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
607 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
mu2]),
FORWARD,
mu2),
FORWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
613 u_clov_2 -= kk5 *
tmp_1;
619 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(adj(
u[
nu2]),
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
620 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(shift(adj(
u[
nu2]),
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
621 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(shift(
u[
mu2],
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
622 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
mu2],
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
nu2),
BACKWARD,
nu2),
BACKWARD,
nu2);
627 u_clov_2 += kk5 *
tmp_1;
634 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
nu2],
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
mu2),
FORWARD,
nu2),
FORWARD,
nu2);
635 tmp_2 =
tmp_1 * shift(shift(shift(shift(shift(shift(
u[
mu2],
BACKWARD,
mu2),
BACKWARD,
mu2),
BACKWARD,
mu2),
FORWARD,
nu2),
FORWARD,
nu2),
FORWARD,
nu2);
636 tmp_1 =
tmp_2 * shift(shift(shift(shift(shift(
u[
mu2],
BACKWARD,
mu2),
BACKWARD,
mu2),
FORWARD,
nu2),
FORWARD,
nu2),
FORWARD,
nu2);
641 u_clov_2 -= kk5 *
tmp_1;
649 tmp_2 = adj(u_clov_1);
653 tmp_2 = adj(u_clov_2);
657 tmp_2 = u_clov_1 * u_clov_2;
666 QDPIO::cout <<
"qtop = " <<
qtop << std::endl;
Primary include file for CHROMA library code.
void qtop_naive(const multi1d< LatticeColorMatrix > &u, const Real k5, Double &qtop)
Compute topological charge.
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)
static multi1d< LatticeColorMatrix > u
FloatingPoint< double > Double
Calculate the topological charge from the gluonic definition.