diff --git a/extras/Hadrons/Environment.cc b/extras/Hadrons/Environment.cc index 83d20d3c..03141b9b 100644 --- a/extras/Hadrons/Environment.cc +++ b/extras/Hadrons/Environment.cc @@ -44,7 +44,7 @@ HADRON_ERROR(Definition, "no object with address " + std::to_string(address)); // constructor ///////////////////////////////////////////////////////////////// Environment::Environment(void) { - dim_ = GridDefaultLatt(); + dim_ = GridDefaultLatt().toVector(); nd_ = dim_.size(); grid4d_.reset(SpaceTimeGrid::makeFourDimGrid( dim_, GridDefaultSimd(nd_, vComplex::Nsimd()), diff --git a/extras/Hadrons/Modules/MScalar/ChargedProp.cc b/extras/Hadrons/Modules/MScalar/ChargedProp.cc index 95a81de6..4668544c 100644 --- a/extras/Hadrons/Modules/MScalar/ChargedProp.cc +++ b/extras/Hadrons/Modules/MScalar/ChargedProp.cc @@ -143,7 +143,7 @@ void TChargedProp::makeCaches(void) } if (!phasesDone_) { - std::vector &l = env().getGrid()->_fdimensions; + Coordinate &l = env().getGrid()->_fdimensions; Complex ci(0.0,1.0); LOG(Message) << "Caching shift phases..." << std::endl;