diff --git a/extras/Hadrons/Environment.cc b/extras/Hadrons/Environment.cc index 9c9618f7..35bb4648 100644 --- a/extras/Hadrons/Environment.cc +++ b/extras/Hadrons/Environment.cc @@ -106,14 +106,10 @@ void Environment::createCoarseGrid(const std::vector &blockSize, gridCoarse4d_[key4d].reset( SpaceTimeGrid::makeFourDimGrid(coarseDim, GridDefaultSimd(nd, vComplex::Nsimd()), GridDefaultMpi())); - gridCoarseRb4d_[key4d].reset( - SpaceTimeGrid::makeFourDimRedBlackGrid(gridCoarse4d_[key4d].get())); if (Ls > 1) { gridCoarse5d_[key5d].reset( SpaceTimeGrid::makeFiveDimGrid(cLs, gridCoarse4d_[key4d].get())); - gridCoarseRb5d_[key5d].reset( - SpaceTimeGrid::makeFiveDimRedBlackGrid(cLs, gridCoarse4d_[key4d].get())); } } @@ -179,30 +175,6 @@ GridCartesian * Environment::getCoarseGrid( } } -GridRedBlackCartesian * Environment::getRbCoarseGrid( - const std::vector &blockSize, const unsigned int Ls) const -{ - auto key = blockSize; - - try - { - if (Ls == 1) - { - key.resize(getNd()); - return gridCoarseRb4d_.at(key).get(); - } - else - { - key.push_back(Ls); - return gridCoarseRb5d_.at(key).get(); - } - } - catch(std::out_of_range &) - { - HADRON_ERROR(Definition, "no coarse red-black grid with Ls= " + std::to_string(Ls)); - } -} - unsigned int Environment::getNd(void) const { return nd_; diff --git a/extras/Hadrons/Environment.hpp b/extras/Hadrons/Environment.hpp index 0fb81250..f624f36e 100644 --- a/extras/Hadrons/Environment.hpp +++ b/extras/Hadrons/Environment.hpp @@ -92,8 +92,6 @@ public: GridRedBlackCartesian * getRbGrid(const unsigned int Ls = 1) const; GridCartesian * getCoarseGrid(const std::vector &blockSize, const unsigned int Ls = 1) const; - GridRedBlackCartesian * getRbCoarseGrid(const std::vector &blockSize, - const unsigned int Ls = 1) const; std::vector getDim(void) const; int getDim(const unsigned int mu) const; unsigned long int getLocalVolume(void) const; @@ -166,9 +164,7 @@ private: GridRbPt gridRb4d_; std::map gridRb5d_; std::map, GridPt> gridCoarse4d_; - std::map, GridRbPt> gridCoarseRb4d_; std::map, GridPt> gridCoarse5d_; - std::map, GridRbPt> gridCoarseRb5d_; unsigned int nd_; // random number generator RngPt rng4d_;