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

GPU friendly coords

This commit is contained in:
paboyle 2018-02-24 22:23:47 +00:00
parent 34820bec27
commit e158b60bce
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ HADRON_ERROR(Definition, "no object with address " + std::to_string(address));
// constructor ///////////////////////////////////////////////////////////////// // constructor /////////////////////////////////////////////////////////////////
Environment::Environment(void) Environment::Environment(void)
{ {
dim_ = GridDefaultLatt(); dim_ = GridDefaultLatt().toVector();
nd_ = dim_.size(); nd_ = dim_.size();
grid4d_.reset(SpaceTimeGrid::makeFourDimGrid( grid4d_.reset(SpaceTimeGrid::makeFourDimGrid(
dim_, GridDefaultSimd(nd_, vComplex::Nsimd()), dim_, GridDefaultSimd(nd_, vComplex::Nsimd()),

View File

@ -143,7 +143,7 @@ void TChargedProp::makeCaches(void)
} }
if (!phasesDone_) if (!phasesDone_)
{ {
std::vector<int> &l = env().getGrid()->_fdimensions; Coordinate &l = env().getGrid()->_fdimensions;
Complex ci(0.0,1.0); Complex ci(0.0,1.0);
LOG(Message) << "Caching shift phases..." << std::endl; LOG(Message) << "Caching shift phases..." << std::endl;