1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Added missing allocation of Weak Hamiltonian result vector

This commit is contained in:
Lanny91 2017-02-07 13:06:42 +00:00
parent 4a45c06dd7
commit bdd2765461
4 changed files with 6 additions and 4 deletions

View File

@ -101,7 +101,7 @@ void TWeakHamiltonianEye::execute(void)
Gamma g5 = Gamma(Gamma::Algebra::Gamma5); Gamma g5 = Gamma(Gamma::Algebra::Gamma5);
LatticeComplex expbuf(env().getGrid()); LatticeComplex expbuf(env().getGrid());
std::vector<TComplex> corrbuf; std::vector<TComplex> corrbuf;
std::vector<Result> result; std::vector<Result> result(n_eye_diag);
unsigned int ndim = env().getNd(); unsigned int ndim = env().getNd();
PropagatorField tmp1(env().getGrid()); PropagatorField tmp1(env().getGrid());

View File

@ -41,7 +41,8 @@ BEGIN_MODULE_NAMESPACE(MContraction)
enum enum
{ {
S_diag = 0, S_diag = 0,
E_diag = 1 E_diag = 1,
n_eye_diag = 2
}; };
// Saucer and Eye subdiagram contractions. // Saucer and Eye subdiagram contractions.

View File

@ -103,7 +103,7 @@ void TWeakHamiltonianNonEye::execute(void)
Gamma g5 = Gamma(Gamma::Algebra::Gamma5); Gamma g5 = Gamma(Gamma::Algebra::Gamma5);
LatticeComplex expbuf(env().getGrid()); LatticeComplex expbuf(env().getGrid());
std::vector<TComplex> corrbuf; std::vector<TComplex> corrbuf;
std::vector<Result> result; std::vector<Result> result(n_noneye_diag);
unsigned int ndim = env().getNd(); unsigned int ndim = env().getNd();
PropagatorField tmp1(env().getGrid()); PropagatorField tmp1(env().getGrid());

View File

@ -41,7 +41,8 @@ BEGIN_MODULE_NAMESPACE(MContraction)
enum enum
{ {
W_diag = 0, W_diag = 0,
C_diag = 1 C_diag = 1,
n_noneye_diag = 2
}; };
// Wing and Connected subdiagram contractions // Wing and Connected subdiagram contractions