mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-06 16:08:05 +01:00
Hadrons: maximum iteration specified for tests and error if 0
This commit is contained in:
1 parent
2f849ee252
commit
70ec2faa98
7 files changed
+25
-13
No files matched your search
@@ -111,9 +111,15 @@ std::vector<std::string> TRBPrecCG<FImpl>::getOutput(void)
|
||||
template <typename FImpl>
|
||||
void TRBPrecCG<FImpl>::setup(void)
|
||||
{
|
||||
if (par().maxIteration == 0)
|
||||
{
|
||||
HADRON_ERROR(Argument, "zero maximum iteration");
|
||||
}
|
||||
|
||||
LOG(Message) << "setting up Schur red-black preconditioned CG for"
|
||||
<< " action '" << par().action << "' with residual "
|
||||
<< par().residual << std::endl;
|
||||
<< par().residual << ", maximum iteration "
|
||||
<< par().maxIteration << std::endl;
|
||||
|
||||
auto Ls = env().getObjectLs(par().action);
|
||||
auto &mat = envGet(FMat, par().action);
|
||||
|
||||
Reference in new issue
Block a user