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:
parent
75cd72a421
commit
ea0cea668e
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user