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

Hadrons: minor code cleaning

This commit is contained in:
Antonin Portelli 2016-05-05 16:13:14 -07:00
parent 75cd72a421
commit ea0cea668e
2 changed files with 5 additions and 4 deletions

View File

@ -121,13 +121,13 @@ Environment::FMat * Environment::getFermionMatrix(const std::string name) const
}
else
{
try
if (hasSolver(name))
{
return fMat_.at(solverAction_.at(name)).get();
}
catch (std::out_of_range &)
else
{
HADRON_ERROR("no action with name '" << name << "'");
HADRON_ERROR("no action/solver with name '" << name << "'");
}
}
}
@ -299,6 +299,8 @@ void Environment::freeAll(void)
fMat_.clear();
solver_.clear();
objectSize_.clear();
owners_.clear();
properties_.clear();
}
unsigned int Environment::getSize(const std::string name) const

View File

@ -70,7 +70,6 @@ void SolRBPrecCG::setup(void)
void SolRBPrecCG::execute(void)
{
auto &mat = *(env().getFermionMatrix(par_.action));
auto solver = [&mat, this](LatticeFermion &sol,
const LatticeFermion &source)
{