From a1825d1f59de715337a736d81d28f98bfd8b8d53 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 4 Oct 2018 18:25:26 +0100 Subject: [PATCH] Hadrons: final fix for multiprec eigenpacks --- Hadrons/Modules/MSource/Point.hpp | 5 +++++ Hadrons/Utilities/Makefile.am | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Hadrons/Modules/MSource/Point.hpp b/Hadrons/Modules/MSource/Point.hpp index 082c04e8..2cc1bcd1 100644 --- a/Hadrons/Modules/MSource/Point.hpp +++ b/Hadrons/Modules/MSource/Point.hpp @@ -126,6 +126,11 @@ void TPoint::execute(void) auto &src = envGet(PropagatorField, getName()); SitePropagator id; + if (position.size() != env().getNd()) + { + HADRONS_ERROR(Size, "position has " + std::to_string(position.size()) + + " components (must have " + std::to_string(env().getNd()) + ")"); + } id = 1.; src = zero; pokeSite(id, src, position); diff --git a/Hadrons/Utilities/Makefile.am b/Hadrons/Utilities/Makefile.am index 7655b2e2..529def24 100644 --- a/Hadrons/Utilities/Makefile.am +++ b/Hadrons/Utilities/Makefile.am @@ -1,10 +1,8 @@ -AM_LDFLAGS += -L../../Hadrons - bin_PROGRAMS = HadronsXmlRun HadronsFermionEP64To32 HadronsXmlRun_SOURCES = HadronsXmlRun.cc -HadronsXmlRun_LDADD = -lHadrons -lGrid +HadronsXmlRun_LDADD = ../libHadrons.a ../../Grid/libGrid.a HadronsFermionEP64To32_SOURCES = EigenPackCast.cc HadronsFermionEP64To32_CXXFLAGS = $(AM_CXXFLAGS) -DFIN=WilsonImplD::FermionField -DFOUT=WilsonImplF::FermionField -HadronsFermionEP64To32_LDADD = -lHadrons -lGrid +HadronsFermionEP64To32_LDADD = ../libHadrons.a ../../Grid/libGrid.a