From 6ebf8b12b6bc180902c00e4d5235a6f4c8f6aa67 Mon Sep 17 00:00:00 2001 From: Lanny91 Date: Wed, 8 Feb 2017 12:43:13 +0000 Subject: [PATCH] Removed unnecessary repeat of write in Weak Hamiltonian contractions --- extras/Hadrons/Modules/MContraction/WeakHamiltonianEye.cc | 3 +-- extras/Hadrons/Modules/MContraction/WeakHamiltonianNonEye.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/extras/Hadrons/Modules/MContraction/WeakHamiltonianEye.cc b/extras/Hadrons/Modules/MContraction/WeakHamiltonianEye.cc index 6c13aee5..19808bfa 100644 --- a/extras/Hadrons/Modules/MContraction/WeakHamiltonianEye.cc +++ b/extras/Hadrons/Modules/MContraction/WeakHamiltonianEye.cc @@ -135,6 +135,5 @@ void TWeakHamiltonianEye::execute(void) SUM_MU(expbuf, E_body[mu]*E_loop[mu]) MAKE_DIAG(expbuf, corrbuf, result[E_diag], "HW_E") - write(writer, "HW_Eye", result[S_diag]); - write(writer, "HW_Eye", result[E_diag]); + write(writer, "HW_Eye", result); } diff --git a/extras/Hadrons/Modules/MContraction/WeakHamiltonianNonEye.cc b/extras/Hadrons/Modules/MContraction/WeakHamiltonianNonEye.cc index 98a5e104..b94311bc 100644 --- a/extras/Hadrons/Modules/MContraction/WeakHamiltonianNonEye.cc +++ b/extras/Hadrons/Modules/MContraction/WeakHamiltonianNonEye.cc @@ -137,6 +137,5 @@ void TWeakHamiltonianNonEye::execute(void) SUM_MU(expbuf, W_i_side_loop[mu]*W_f_side_loop[mu]) MAKE_DIAG(expbuf, corrbuf, result[W_diag], "HW_W") - write(writer, "HW_NonEye", result[C_diag]); - write(writer, "HW_NonEye", result[W_diag]); + write(writer, "HW_NonEye", result); }