mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01: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
|
else
|
||||||
{
|
{
|
||||||
try
|
if (hasSolver(name))
|
||||||
{
|
{
|
||||||
return fMat_.at(solverAction_.at(name)).get();
|
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();
|
fMat_.clear();
|
||||||
solver_.clear();
|
solver_.clear();
|
||||||
objectSize_.clear();
|
objectSize_.clear();
|
||||||
|
owners_.clear();
|
||||||
|
properties_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Environment::getSize(const std::string name) const
|
unsigned int Environment::getSize(const std::string name) const
|
||||||
|
@ -70,7 +70,6 @@ void SolRBPrecCG::setup(void)
|
|||||||
void SolRBPrecCG::execute(void)
|
void SolRBPrecCG::execute(void)
|
||||||
{
|
{
|
||||||
auto &mat = *(env().getFermionMatrix(par_.action));
|
auto &mat = *(env().getFermionMatrix(par_.action));
|
||||||
|
|
||||||
auto solver = [&mat, this](LatticeFermion &sol,
|
auto solver = [&mat, this](LatticeFermion &sol,
|
||||||
const LatticeFermion &source)
|
const LatticeFermion &source)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user