36 void walfil(LatticeStaggeredFermion&
a,
int slice,
int mu,
int color_index,
int src_index)
40 if ( color_index >= Nc )
43 if ( (slice % 2) != 0 )
53 Complex sitecomp = cmplx(
one,0);
54 ColorVector sitecolor =
zero;
55 StaggeredFermion sitefield =
zero;
58 pokeColor(sitecolor,sitecomp,color_index),
63 LatticeBoolean ltest = (Layout::latticeCoordinate(
mu) == slice);
67 for(
int m = 0;
m <
Nd; ++
m)
69 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
73 for(
int m = 0;
m <
Nd-1; ++
m){
75 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
77 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
82 for(
int m = 0;
m <
Nd-1; ++
m){
84 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
86 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
91 for(
int m = 0;
m <
Nd-1; ++
m){
93 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
95 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
100 for(
int m = 0;
m <
Nd-1; ++
m){
102 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
104 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
109 for(
int m = 0;
m <
Nd-1; ++
m){
111 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
113 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
118 for(
int m = 0;
m <
Nd-1; ++
m){
120 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 0);
122 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
127 for(
int m = 0;
m <
Nd-1; ++
m)
128 ltest &= ( (Layout::latticeCoordinate(
m) % 2) == 1);
132 QDPIO::cerr <<
"walfil_s: There are only 8 corners of a cube! " << std::endl;
137 LatticeStaggeredFermion
tmp;
140 a = where(ltest,
tmp, LatticeStaggeredFermion(
zero));
Primary include file for CHROMA library code.
void walfil(LatticeStaggeredFermion &a, int slice, int mu, int color_index, int src_index)
Fill a specific color and spin index with 1.0 on a wall.
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)
Wall source construction.