From 430b98b35474e67ee9a7743d930d69a62f5e9a9b Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 2 Oct 2018 13:12:46 +0100 Subject: [PATCH] fix previous commit --- Hadrons/Utilities/EigenPackCast.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Hadrons/Utilities/EigenPackCast.cc b/Hadrons/Utilities/EigenPackCast.cc index e9be2c15..c35a3321 100644 --- a/Hadrons/Utilities/EigenPackCast.cc +++ b/Hadrons/Utilities/EigenPackCast.cc @@ -16,7 +16,9 @@ void convert(const std::string outFilename, const std::string inFilename, typedef typename FOut::vector_type VTypeOut; typedef typename FIn::vector_type VTypeIn; - std::shared_ptr fgIn, fgOut, gIn, gOut; + std::shared_ptr fgIn, fgOut; + std::shared_ptr gIn, gOut; + auto dim = GridDefaultLatt(); unsigned int nd = dim.size(); auto simdOut = GridDefaultSimd(nd, VTypeOut::Nsimd()); @@ -25,8 +27,8 @@ void convert(const std::string outFilename, const std::string inFilename, fgOut.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdOut, GridDefaultMpi())); gOut.reset(SpaceTimeGrid::makeFourDimRedBlackGrid(fgOut.get())); fgIn.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdIn, GridDefaultMpi())); - gIn.reset(SpaceTimeGrid::makeFourDimRedBlackGrid(fgOut.get())); - + gIn.reset(SpaceTimeGrid::makeFourDimRedBlackGrid(fgIn.get())); + FOut bufOut(gOut.get()); FIn bufIn(gIn.get()), testIn(gIn.get());