From c37e6e1bfda0773ddfb00177c6733d4e13853fc5 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 28 Jan 2020 20:15:28 +0000 Subject: [PATCH] effective mass fix --- lib/Physics/EffectiveMass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Physics/EffectiveMass.cpp b/lib/Physics/EffectiveMass.cpp index 7899843..194da50 100644 --- a/lib/Physics/EffectiveMass.cpp +++ b/lib/Physics/EffectiveMass.cpp @@ -106,9 +106,9 @@ DVec EffectiveMass::operator()(const DVec &corr) const break; case CorrelatorType::linear: em.resize(nt - 1); - for (Index t = 0; t < nt - 1; ++t) + for (Index t = 1; t < nt; ++t) { - em(t) = corr(t) - corr(t - 1); + em(t - 1) = corr(t) - corr(t - 1); } break; case CorrelatorType::cst: