Grid 0.7.0
WilsonFermionImplementation.h
Go to the documentation of this file.
1/*************************************************************************************
2
3Grid physics library, www.github.com/paboyle/Grid
4
5Source file: ./lib/qcd/action/fermion/WilsonFermion.cc
6
7Copyright (C) 2022
8
9Author: Peter Boyle <pabobyle@ph.ed.ac.uk>
10Author: Peter Boyle <paboyle@ph.ed.ac.uk>
11Author: Peter Boyle <peterboyle@Peters-MacBook-Pro-2.local>
12Author: paboyle <paboyle@ph.ed.ac.uk>
13Author: Fabian Joswig <fabian.joswig@ed.ac.uk>
14
15This program is free software; you can redistribute it and/or modify
16it under the terms of the GNU General Public License as published by
17the Free Software Foundation; either version 2 of the License, or
18(at your option) any later version.
19
20This program is distributed in the hope that it will be useful,
21but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23GNU General Public License for more details.
24
25You should have received a copy of the GNU General Public License along
26with this program; if not, write to the Free Software Foundation, Inc.,
2751 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28
29See the full license in the file "LICENSE" in the top level distribution
30directory
31*************************************************************************************/
32 /* END LEGAL */
35
37
39// Constructor and gauge import
41
42template <class Impl>
44 GridRedBlackCartesian &Hgrid, RealD _mass,
45 const ImplParams &p,
47 :
48 Kernels(p),
49 _grid(&Fgrid),
50 _cbgrid(&Hgrid),
52 StencilEven(&Hgrid, npoint, Even, directions,displacements,p), // source is Even
53 StencilOdd(&Hgrid, npoint, Odd, directions,displacements,p), // source is Odd
54 mass(_mass),
55 Umu(&Fgrid),
56 UmuEven(&Hgrid),
57 UmuOdd(&Hgrid),
58 _tmp(&Hgrid),
59 anisotropyCoeff(anis)
60{
61 // Allocate the required comms buffer
62 ImportGauge(_Umu);
63 if (anisotropyCoeff.isAnisotropic){
64 diag_mass = mass + 1.0 + (Nd-1)*(anisotropyCoeff.nu / anisotropyCoeff.xi_0);
65 } else {
66 diag_mass = 4.0 + mass;
67 }
68
69 int vol4;
70 vol4=Fgrid.oSites();
71 Stencil.BuildSurfaceList(1,vol4);
72 vol4=Hgrid.oSites();
73 StencilEven.BuildSurfaceList(1,vol4);
74 StencilOdd.BuildSurfaceList(1,vol4);
75}
76
77template <class Impl>
78void WilsonFermion<Impl>::ImportGauge(const GaugeField &_Umu)
79{
80 GaugeField HUmu(_Umu.Grid());
81
82 //Here multiply the anisotropy coefficients
83 if (anisotropyCoeff.isAnisotropic)
84 {
85
86 for (int mu = 0; mu < Nd; mu++)
87 {
88 GaugeLinkField U_dir = (-0.5)*PeekIndex<LorentzIndex>(_Umu, mu);
89 if (mu != anisotropyCoeff.t_direction)
90 U_dir *= (anisotropyCoeff.nu / anisotropyCoeff.xi_0);
91
92 PokeIndex<LorentzIndex>(HUmu, U_dir, mu);
93 }
94 }
95 else
96 {
97 HUmu = _Umu * (-0.5);
98 }
99 Impl::DoubleStore(GaugeGrid(), Umu, HUmu);
100 pickCheckerboard(Even, UmuEven, Umu);
101 pickCheckerboard(Odd, UmuOdd, Umu);
102}
104/////////////////////////////
105// Implement the interface
107
108template <class Impl>
109void WilsonFermion<Impl>::M(const FermionField &in, FermionField &out)
111 out.Checkerboard() = in.Checkerboard();
112 Dhop(in, out, DaggerNo);
113 axpy(out, diag_mass, in, out);
114}
115
116template <class Impl>
117void WilsonFermion<Impl>::Mdag(const FermionField &in, FermionField &out)
119 out.Checkerboard() = in.Checkerboard();
120 Dhop(in, out, DaggerYes);
121 axpy(out, diag_mass, in, out);
122}
123
124template <class Impl>
125void WilsonFermion<Impl>::Meooe(const FermionField &in, FermionField &out)
127 if (in.Checkerboard() == Odd) {
128 DhopEO(in, out, DaggerNo);
129 } else {
130 DhopOE(in, out, DaggerNo);
131 }
132}
134template <class Impl>
135void WilsonFermion<Impl>::MeooeDag(const FermionField &in, FermionField &out)
136{
137 if (in.Checkerboard() == Odd) {
138 DhopEO(in, out, DaggerYes);
139 } else {
140 DhopOE(in, out, DaggerYes);
141 }
142}
143
144template <class Impl>
145void WilsonFermion<Impl>::Mooee(const FermionField &in, FermionField &out)
146{
147 out.Checkerboard() = in.Checkerboard();
148 typename FermionField::scalar_type scal(diag_mass);
149 out = scal * in;
150}
151
152template <class Impl>
153void WilsonFermion<Impl>::MooeeDag(const FermionField &in, FermionField &out)
154{
155 out.Checkerboard() = in.Checkerboard();
156 Mooee(in, out);
157}
158
159template<class Impl>
160void WilsonFermion<Impl>::MooeeInv(const FermionField &in, FermionField &out)
161{
162 out.Checkerboard() = in.Checkerboard();
163 out = (1.0/(diag_mass))*in;
164}
165
166template<class Impl>
167void WilsonFermion<Impl>::MooeeInvDag(const FermionField &in, FermionField &out)
168{
169 out.Checkerboard() = in.Checkerboard();
170 MooeeInv(in,out);
171}
172template<class Impl>
173void WilsonFermion<Impl>::MomentumSpacePropagator(FermionField &out, const FermionField &in,RealD _m,std::vector<double> twist)
174{
175 typedef typename FermionField::vector_type vector_type;
176 typedef typename FermionField::scalar_type ScalComplex;
177 typedef Lattice<iSinglet<vector_type> > LatComplex;
178
179 // what type LatticeComplex
180 conformable(_grid,out.Grid());
181
182 Gamma::Algebra Gmu [] = {
183 Gamma::Algebra::GammaX,
184 Gamma::Algebra::GammaY,
185 Gamma::Algebra::GammaZ,
186 Gamma::Algebra::GammaT
187 };
188
189 Coordinate latt_size = _grid->_fdimensions;
190
191 FermionField num (_grid); num = Zero();
192 LatComplex wilson(_grid); wilson= Zero();
193 LatComplex one (_grid); one = ScalComplex(1.0,0.0);
194
195 LatComplex denom(_grid); denom= Zero();
196 LatComplex kmu(_grid);
197 ScalComplex ci(0.0,1.0);
198 // momphase = n * 2pi / L
199 for(int mu=0;mu<Nd;mu++) {
200
201 LatticeCoordinate(kmu,mu);
202
203 RealD TwoPiL = M_PI * 2.0/ latt_size[mu];
204
205 kmu = TwoPiL * kmu;
206 kmu = kmu + TwoPiL * one * twist[mu];//momentum for twisted boundary conditions
207
208 wilson = wilson + 2.0*sin(kmu*0.5)*sin(kmu*0.5); // Wilson term
209
210 num = num - sin(kmu)*ci*(Gamma(Gmu[mu])*in); // derivative term
211
212 denom=denom + sin(kmu)*sin(kmu);
213 }
214
215 wilson = wilson + _m; // 2 sin^2 k/2 + m
216
217 num = num + wilson*in; // -i gmu sin k + 2 sin^2 k/2 + m
218
219 denom= denom+wilson*wilson; // sin^2 k + (2 sin^2 k/2 + m)^2
220
221 denom= one/denom;
222
223 out = num*denom; // [ -i gmu sin k + 2 sin^2 k/2 + m] / [ sin^2 k + (2 sin^2 k/2 + m)^2 ]
224
225}
226
227
229// Internal
231
232template <class Impl>
233void WilsonFermion<Impl>::DerivInternal(StencilImpl &st, DoubledGaugeField &U,
234 GaugeField &mat, const FermionField &A,
235 const FermionField &B, int dag) {
236 assert((dag == DaggerNo) || (dag == DaggerYes));
237
238 Compressor compressor(dag);
239
240 FermionField Btilde(B.Grid());
241 FermionField Atilde(B.Grid());
242 Atilde = A;
243
244 st.HaloExchange(B, compressor);
245
246 for (int mu = 0; mu < Nd; mu++) {
248 // Flip gamma (1+g)<->(1-g) if dag
250 int gamma = mu;
251 if (!dag) gamma += Nd;
252
253 int Ls=1;
254 Kernels::DhopDirKernel(st, U, st.CommBuf(), Ls, B.Grid()->oSites(), B, Btilde, mu, gamma);
255
257 // spin trace outer product
259 Impl::InsertForce4D(mat, Btilde, Atilde, mu);
260 }
261}
262
263template <class Impl>
264void WilsonFermion<Impl>::DhopDeriv(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
265{
266 conformable(U.Grid(), _grid);
267 conformable(U.Grid(), V.Grid());
268 conformable(U.Grid(), mat.Grid());
269
270 mat.Checkerboard() = U.Checkerboard();
271
272 DerivInternal(Stencil, Umu, mat, U, V, dag);
273}
274
275template <class Impl>
276void WilsonFermion<Impl>::DhopDerivOE(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
277{
278 conformable(U.Grid(), _cbgrid);
279 conformable(U.Grid(), V.Grid());
280 //conformable(U.Grid(), mat.Grid()); not general, leaving as a comment (Guido)
281 // Motivation: look at the SchurDiff operator
282
283 assert(V.Checkerboard() == Even);
284 assert(U.Checkerboard() == Odd);
285 mat.Checkerboard() = Odd;
286
287 DerivInternal(StencilEven, UmuOdd, mat, U, V, dag);
288}
289
290template <class Impl>
291void WilsonFermion<Impl>::DhopDerivEO(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
292{
293 conformable(U.Grid(), _cbgrid);
294 conformable(U.Grid(), V.Grid());
295 //conformable(U.Grid(), mat.Grid());
296
297 assert(V.Checkerboard() == Odd);
298 assert(U.Checkerboard() == Even);
299 mat.Checkerboard() = Even;
300
301 DerivInternal(StencilOdd, UmuEven, mat, U, V, dag);
302}
303
304template <class Impl>
305void WilsonFermion<Impl>::Dhop(const FermionField &in, FermionField &out, int dag)
306{
307 conformable(in.Grid(), _grid); // verifies full grid
308 conformable(in.Grid(), out.Grid());
309
310 out.Checkerboard() = in.Checkerboard();
311
312 DhopInternal(Stencil, Umu, in, out, dag);
313}
314
315template <class Impl>
316void WilsonFermion<Impl>::DhopOE(const FermionField &in, FermionField &out, int dag)
317{
318 conformable(in.Grid(), _cbgrid); // verifies half grid
319 conformable(in.Grid(), out.Grid()); // drops the cb check
320
321 assert(in.Checkerboard() == Even);
322 out.Checkerboard() = Odd;
323
324 DhopInternal(StencilEven, UmuOdd, in, out, dag);
325}
326
327template <class Impl>
328void WilsonFermion<Impl>::DhopEO(const FermionField &in, FermionField &out,int dag)
329{
330 conformable(in.Grid(), _cbgrid); // verifies half grid
331 conformable(in.Grid(), out.Grid()); // drops the cb check
332
333 assert(in.Checkerboard() == Odd);
334 out.Checkerboard() = Even;
335
336 DhopInternal(StencilOdd, UmuEven, in, out, dag);
337}
338
339template <class Impl>
340void WilsonFermion<Impl>::Mdir(const FermionField &in, FermionField &out, int dir, int disp)
341{
342 DhopDir(in, out, dir, disp);
343}
344template <class Impl>
345void WilsonFermion<Impl>::MdirAll(const FermionField &in, std::vector<FermionField> &out)
346{
347 DhopDirAll(in, out);
348}
349
350template <class Impl>
351void WilsonFermion<Impl>::DhopDir(const FermionField &in, FermionField &out, int dir, int disp)
352{
353 Compressor compressor(DaggerNo);
354 Stencil.HaloExchange(in, compressor);
355
356 int skip = (disp == 1) ? 0 : 1;
357 int dirdisp = dir + skip * 4;
358 int gamma = dir + (1 - skip) * 4;
359
360 DhopDirCalc(in, out, dirdisp, gamma, DaggerNo);
361};
362template <class Impl>
363void WilsonFermion<Impl>::DhopDirAll(const FermionField &in, std::vector<FermionField> &out)
364{
365 Compressor compressor(DaggerNo);
366 Stencil.HaloExchange(in, compressor);
367
368 assert((out.size()==8)||(out.size()==9));
369 for(int dir=0;dir<Nd;dir++){
370 for(int disp=-1;disp<=1;disp+=2){
371
372 int skip = (disp == 1) ? 0 : 1;
373 int dirdisp = dir + skip * 4;
374 int gamma = dir + (1 - skip) * 4;
375
376 DhopDirCalc(in, out[dirdisp], dirdisp, gamma, DaggerNo);
377 }
378 }
379}
380template <class Impl>
381void WilsonFermion<Impl>::DhopDirCalc(const FermionField &in, FermionField &out,int dirdisp, int gamma, int dag)
382{
383 int Ls=1;
384 uint64_t Nsite=in.oSites();
385 Kernels::DhopDirKernel(Stencil, Umu, Stencil.CommBuf(), Ls, Nsite, in, out, dirdisp, gamma);
386};
387
388template <class Impl>
390 DoubledGaugeField &U,
391 const FermionField &in,
392 FermionField &out, int dag)
393{
394#ifdef GRID_OMP
396 DhopInternalOverlappedComms(st,U,in,out,dag);
397 else
398#endif
399 DhopInternalSerial(st,U,in,out,dag);
400}
401
402template <class Impl>
404 DoubledGaugeField &U,
405 const FermionField &in,
406 FermionField &out, int dag)
407{
408 GRID_TRACE("DhopOverlapped");
409 assert((dag == DaggerNo) || (dag == DaggerYes));
410
411 Compressor compressor(dag);
412 int len = U.Grid()->oSites();
413
415 // Start comms // Gather intranode and extra node differentiated??
417 std::vector<std::vector<CommsRequest_t> > requests;
418 st.Prepare();
419 {
420 GRID_TRACE("Gather");
421 st.HaloGather(in,compressor);
422 }
423
424 tracePush("Communication");
425 st.CommunicateBegin(requests);
426
428 // Overlap with comms
430 {
431 GRID_TRACE("MergeSHM");
432 st.CommsMergeSHM(compressor);
433 }
434
436 // do the compute interior
439 if (dag == DaggerYes) {
440 GRID_TRACE("DhopDagInterior");
441 Kernels::DhopDagKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out,1,0);
442 } else {
443 GRID_TRACE("DhopInterior");
444 Kernels::DhopKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out,1,0);
445 }
446
448 // Complete comms
450 st.CommunicateComplete(requests);
451 tracePop("Communication");
452
453 {
454 GRID_TRACE("Merge");
455 st.CommsMerge(compressor);
456 }
458 // do the compute exterior
460
461 if (dag == DaggerYes) {
462 GRID_TRACE("DhopDagExterior");
463 Kernels::DhopDagKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out,0,1);
464 } else {
465 GRID_TRACE("DhopExterior");
466 Kernels::DhopKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out,0,1);
467 }
468};
469
470
471template <class Impl>
473 DoubledGaugeField &U,
474 const FermionField &in,
475 FermionField &out, int dag)
476{
477 GRID_TRACE("DhopSerial");
478 assert((dag == DaggerNo) || (dag == DaggerYes));
479 Compressor compressor(dag);
480 {
481 GRID_TRACE("HaloExchange");
482 st.HaloExchange(in, compressor);
483 }
484
486 if (dag == DaggerYes) {
487 GRID_TRACE("DhopDag");
488 Kernels::DhopDagKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out);
489 } else {
490 GRID_TRACE("Dhop");
491 Kernels::DhopKernel(Opt,st,U,st.CommBuf(),1,U.oSites(),in,out);
492 }
493};
494/*Change ends */
495
496/*******************************************************************************
497 * Conserved current utilities for Wilson fermions, for contracting propagators
498 * to make a conserved current sink or inserting the conserved current
499 * sequentially.
500 ******************************************************************************/
501template <class Impl>
503 PropagatorField &q_in_2,
504 PropagatorField &q_out,
505 PropagatorField &src,
506 Current curr_type,
507 unsigned int mu)
508{
509 if(curr_type != Current::Vector)
510 {
511 std::cout << GridLogError << "Only the conserved vector current is implemented so far." << std::endl;
512 exit(1);
513 }
514
515 Gamma g5(Gamma::Algebra::Gamma5);
516 conformable(_grid, q_in_1.Grid());
517 conformable(_grid, q_in_2.Grid());
518 conformable(_grid, q_out.Grid());
519 auto UGrid= this->GaugeGrid();
520
521 PropagatorField tmp_shifted(UGrid);
522 PropagatorField g5Lg5(UGrid);
523 PropagatorField R(UGrid);
524 PropagatorField gmuR(UGrid);
525
526 Gamma::Algebra Gmu [] = {
527 Gamma::Algebra::GammaX,
528 Gamma::Algebra::GammaY,
529 Gamma::Algebra::GammaZ,
530 Gamma::Algebra::GammaT,
531 };
532 Gamma gmu=Gamma(Gmu[mu]);
533
534 g5Lg5=g5*q_in_1*g5;
535 tmp_shifted=Cshift(q_in_2,mu,1);
536 Impl::multLinkField(R,this->Umu,tmp_shifted,mu);
537 gmuR=gmu*R;
538
539 q_out=adj(g5Lg5)*R;
540 q_out-=adj(g5Lg5)*gmuR;
541
542 tmp_shifted=Cshift(q_in_1,mu,1);
543 Impl::multLinkField(g5Lg5,this->Umu,tmp_shifted,mu);
544 g5Lg5=g5*g5Lg5*g5;
545 R=q_in_2;
546 gmuR=gmu*R;
547
548 q_out-=adj(g5Lg5)*R;
549 q_out-=adj(g5Lg5)*gmuR;
550}
551
552
553template <class Impl>
555 PropagatorField &q_out,
556 PropagatorField &src,
557 Current curr_type,
558 unsigned int mu,
559 unsigned int tmin,
560 unsigned int tmax,
561 ComplexField &lattice_cmplx)
562{
563 if(curr_type != Current::Vector)
564 {
565 std::cout << GridLogError << "Only the conserved vector current is implemented so far." << std::endl;
566 exit(1);
567 }
568
569 int tshift = (mu == Nd-1) ? 1 : 0;
570 unsigned int LLt = GridDefaultLatt()[Tp];
571 conformable(_grid, q_in.Grid());
572 conformable(_grid, q_out.Grid());
573 auto UGrid= this->GaugeGrid();
574
575 PropagatorField tmp(UGrid);
576 PropagatorField Utmp(UGrid);
577 PropagatorField L(UGrid);
578 PropagatorField zz (UGrid);
579 zz=Zero();
580 LatticeInteger lcoor(UGrid); LatticeCoordinate(lcoor,Nd-1);
581
582 Gamma::Algebra Gmu [] = {
583 Gamma::Algebra::GammaX,
584 Gamma::Algebra::GammaY,
585 Gamma::Algebra::GammaZ,
586 Gamma::Algebra::GammaT,
587 };
588 Gamma gmu=Gamma(Gmu[mu]);
589
590 tmp = Cshift(q_in,mu,1);
591 Impl::multLinkField(Utmp,this->Umu,tmp,mu);
592 tmp = ( Utmp*lattice_cmplx - gmu*Utmp*lattice_cmplx ); // Forward hop
593 tmp = where((lcoor>=tmin),tmp,zz); // Mask the time
594 q_out = where((lcoor<=tmax),tmp,zz); // Position of current complicated
595
596 tmp = q_in *lattice_cmplx;
597 tmp = Cshift(tmp,mu,-1);
598 Impl::multLinkField(Utmp,this->Umu,tmp,mu+Nd); // Adjoint link
599 tmp = -( Utmp + gmu*Utmp );
600 // Mask the time
601 if (tmax == LLt - 1 && tshift == 1){ // quick fix to include timeslice 0 if tmax + tshift is over the last timeslice
602 unsigned int t0 = 0;
603 tmp = where(((lcoor==t0) || (lcoor>=tmin+tshift)),tmp,zz);
604 } else {
605 tmp = where((lcoor>=tmin+tshift),tmp,zz);
606 }
607 q_out+= where((lcoor<=tmax+tshift),tmp,zz); // Position of current complicated
608}
609
#define one
Definition BGQQPX.h:108
static const int Even
static const int Odd
AcceleratorVector< int, MaxDims > Coordinate
Definition Coordinate.h:95
auto Cshift(const Expression &expr, int dim, int shift) -> decltype(closure(expr))
Definition Cshift.h:55
accelerator_inline Grid_simd< S, V > sin(const Grid_simd< S, V > &r)
const Coordinate & GridDefaultLatt(void)
Definition Init.cc:107
B
void axpy(Lattice< vobj > &ret, sobj a, const Lattice< vobj > &x, const Lattice< vobj > &y)
void conformable(const Lattice< obj1 > &lhs, const Lattice< obj2 > &rhs)
void LatticeCoordinate(Lattice< iobj > &l, int mu)
void PokeIndex(Lattice< vobj > &lhs, const Lattice< decltype(peekIndex< Index >(vobj(), 0))> &rhs, int i)
auto PeekIndex(const Lattice< vobj > &lhs, int i) -> Lattice< decltype(peekIndex< Index >(vobj(), i))>
Lattice< vobj > adj(const Lattice< vobj > &lhs)
void pickCheckerboard(int cb, Lattice< vobj > &half, const Lattice< vobj > &full)
GridLogger GridLogError(1, "Error", GridLogColours, "RED")
#define NAMESPACE_BEGIN(A)
Definition Namespace.h:35
#define NAMESPACE_END(A)
Definition Namespace.h:36
static constexpr int DaggerYes
Definition QCD.h:70
Lattice< vTInteger > LatticeInteger
Definition QCD.h:364
static constexpr int Nd
Definition QCD.h:52
static constexpr int Tp
Definition QCD.h:44
static constexpr int DaggerNo
Definition QCD.h:69
double RealD
Definition Simd.h:61
#define GRID_TRACE(name)
Definition Tracing.h:68
static INTERNAL_PRECISION U
Definition Zolotarev.cc:230
#define M_PI
Definition Zolotarev.cc:41
void DhopEO(const FermionField &in, FermionField &out, int dag) override
Definition Gamma.h:10
int oSites(void) const
static const std::vector< int > displacements
static const int npoint
static const std::vector< int > directions
void DhopInternalSerial(StencilImpl &st, DoubledGaugeField &U, const FermionField &in, FermionField &out, int dag)
void DhopDirCalc(const FermionField &in, FermionField &out, int dirdisp, int gamma, int dag)
DoubledGaugeField Umu
void MeooeDag(const FermionField &in, FermionField &out)
void DhopOE(const FermionField &in, FermionField &out, int dag)
void Meooe(const FermionField &in, FermionField &out)
void DhopInternal(StencilImpl &st, DoubledGaugeField &U, const FermionField &in, FermionField &out, int dag)
virtual void Mooee(const FermionField &in, FermionField &out)
void DhopDerivOE(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
WilsonFermion(GaugeField &_Umu, GridCartesian &Fgrid, GridRedBlackCartesian &Hgrid, RealD _mass, const ImplParams &p=ImplParams(), const WilsonAnisotropyCoefficients &anis=WilsonAnisotropyCoefficients())
void Dhop(const FermionField &in, FermionField &out, int dag)
WilsonKernels< Impl > Kernels
StencilImpl Stencil
void SeqConservedCurrent(PropagatorField &q_in, PropagatorField &q_out, PropagatorField &phys_src, Current curr_type, unsigned int mu, unsigned int tmin, unsigned int tmax, ComplexField &lattice_cmplx)
StencilImpl StencilOdd
void DhopDerivEO(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
virtual void MomentumSpacePropagator(FermionField &out, const FermionField &in, RealD _mass, std::vector< double > twist)
void ImportGauge(const GaugeField &_Umu)
GridBase * _grid
void DerivInternal(StencilImpl &st, DoubledGaugeField &U, GaugeField &mat, const FermionField &A, const FermionField &B, int dag)
void DhopDir(const FermionField &in, FermionField &out, int dir, int disp)
WilsonAnisotropyCoefficients anisotropyCoeff
void DhopDeriv(GaugeField &mat, const FermionField &U, const FermionField &V, int dag)
void Mdir(const FermionField &in, FermionField &out, int dir, int disp)
virtual void MooeeDag(const FermionField &in, FermionField &out)
virtual void MooeeInv(const FermionField &in, FermionField &out)
void MdirAll(const FermionField &in, std::vector< FermionField > &out)
void ContractConservedCurrent(PropagatorField &q_in_1, PropagatorField &q_in_2, PropagatorField &q_out, PropagatorField &phys_src, Current curr_type, unsigned int mu)
GridBase * GaugeGrid(void)
void DhopDirAll(const FermionField &in, std::vector< FermionField > &out)
void DhopEO(const FermionField &in, FermionField &out, int dag)
FermionField _tmp
DoubledGaugeField UmuOdd
void DhopInternalOverlappedComms(StencilImpl &st, DoubledGaugeField &U, const FermionField &in, FermionField &out, int dag)
virtual void M(const FermionField &in, FermionField &out)
virtual void Mdag(const FermionField &in, FermionField &out)
DoubledGaugeField UmuEven
FermionField & tmp(void)
virtual void MooeeInvDag(const FermionField &in, FermionField &out)
StencilImpl StencilEven
GridBase * _cbgrid
static void DhopDagKernel(int Opt, StencilImpl &st, DoubledGaugeField &U, SiteHalfSpinor *buf, int Ls, int Nsite, const FermionField &in, FermionField &out, int interior=1, int exterior=1)
static void DhopDirKernel(StencilImpl &st, DoubledGaugeField &U, SiteHalfSpinor *buf, int Ls, int Nsite, const FermionField &in, FermionField &out, int dirdisp, int gamma)
static void DhopKernel(int Opt, StencilImpl &st, DoubledGaugeField &U, SiteHalfSpinor *buf, int Ls, int Nsite, const FermionField &in, FermionField &out, int interior=1, int exterior=1)
Definition Simd.h:194