CHROMA
laplacian.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Laplacian smearing of a source
3  */
4 
5 #include "chromabase.h"
6 #include "meas/smear/laplacian.h"
8 
9 namespace Chroma
10 {
11 
12  //! Do a covariant Gaussian smearing of a lattice field
13  /*!
14  * \ingroup smear
15  *
16  * Arguments:
17  *
18  * \param u gauge field ( Read )
19  * \param chi color std::vector field ( Modify )
20  * \param j_decay direction of decay ( Read )
21  * \param power number of times to apply laplacian ( Read )
22  */
23 
24  template<typename T>
25  void laplacian(const multi1d<LatticeColorMatrix>& u,
26  T& chi,
27  int j_decay,
28  int power)
29  {
30  T psi;
31 
32  for (int p=0; p<power; p++) {
33  psi = -1 * chi;
34 
35  /* hit with laplacian (Klein-Gordon with m=0) */
36  klein_gord(u, psi, chi, 0, j_decay);
37  }
38  }
39 
40  void laplacian(const multi1d<LatticeColorMatrix>& u,
41  LatticeColorVector& chi,
42  int j_decay,
43  int power)
44  {
45  laplacian<LatticeColorVector>(u, chi, j_decay, power);
46  }
47 
48  void laplacian(const multi1d<LatticeColorMatrix>& u,
49  LatticePropagator& chi,
50  int j_decay,
51  int power)
52  {
53  laplacian<LatticePropagator>(u, chi, j_decay, power);
54  }
55 
56 } // end namespace Chroma
57 
Primary include file for CHROMA library code.
void klein_gord(const multi1d< LatticeColorMatrix > &u, const T &psi, T &chi, const Real &mass_sq, int j_decay)
Compute the covariant Klein-Gordon operator.
Definition: klein_gord.cc:31
void laplacian(const multi1d< LatticeColorMatrix > &u, T &chi, int j_decay, int power)
Do a covariant Gaussian smearing of a lattice field.
Definition: laplacian.cc:25
Klein-Gordon operator.
Laplacian smearing of a source.
int j_decay
Definition: meslate.cc:22
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
LinOpSysSolverMGProtoClover::T T
multi1d< LatticeFermion > chi(Ncb)
LatticeFermion psi
Definition: mespbg5p_w.cc:35