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

Hadrons: eigenpack converter with RB grids (to be generalised)

This commit is contained in:
Antonin Portelli 2018-10-02 13:05:05 +01:00
parent 4ab8cfbe2a
commit 84189867ef

View File

@ -16,14 +16,16 @@ void convert(const std::string outFilename, const std::string inFilename,
typedef typename FOut::vector_type VTypeOut; typedef typename FOut::vector_type VTypeOut;
typedef typename FIn::vector_type VTypeIn; typedef typename FIn::vector_type VTypeIn;
std::shared_ptr<GridBase> gIn, gOut; std::shared_ptr<GridBase> fgIn, fgOut, gIn, gOut;
auto dim = GridDefaultLatt(); auto dim = GridDefaultLatt();
unsigned int nd = dim.size(); unsigned int nd = dim.size();
auto simdOut = GridDefaultSimd(nd, VTypeOut::Nsimd()); auto simdOut = GridDefaultSimd(nd, VTypeOut::Nsimd());
auto simdIn = GridDefaultSimd(nd, VTypeIn::Nsimd()); auto simdIn = GridDefaultSimd(nd, VTypeIn::Nsimd());
gOut.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdOut, GridDefaultMpi())); fgOut.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdOut, GridDefaultMpi()));
gIn.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdIn, GridDefaultMpi())); gOut.reset(SpaceTimeGrid::makeFourDimRedBlackGrid(fgOut.get()));
fgIn.reset(SpaceTimeGrid::makeFourDimGrid(dim, simdIn, GridDefaultMpi()));
gIn.reset(SpaceTimeGrid::makeFourDimRedBlackGrid(fgOut.get()));
FOut bufOut(gOut.get()); FOut bufOut(gOut.get());
FIn bufIn(gIn.get()), testIn(gIn.get()); FIn bufIn(gIn.get()), testIn(gIn.get());