mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
assert -> ERROR
This commit is contained in:
parent
b1e8b5b5ce
commit
271a02230e
@ -299,7 +299,10 @@ void TLapEvec<GImpl>::execute(void)
|
|||||||
}
|
}
|
||||||
GridLogIRL.Active( PreviousIRLLogState );
|
GridLogIRL.Active( PreviousIRLLogState );
|
||||||
gridHD->GlobalSum(ConvergenceErrors);
|
gridHD->GlobalSum(ConvergenceErrors);
|
||||||
assert(ConvergenceErrors==0 && "The eingensolver failed to find enough eigenvectors on at least one node");
|
if(!ConvergenceErrors==0)
|
||||||
|
{
|
||||||
|
HADRONS_ERROR(Program,"The eingensolver failed to find enough eigenvectors on at least one node");
|
||||||
|
}
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// Now write out the 4d eigenvectors
|
// Now write out the 4d eigenvectors
|
||||||
eig4d.record.operatorXml = "<OPERATOR>Distillation</OPERATOR>";
|
eig4d.record.operatorXml = "<OPERATOR>Distillation</OPERATOR>";
|
||||||
|
@ -57,8 +57,8 @@ public:
|
|||||||
std::string, eigenPack,
|
std::string, eigenPack,
|
||||||
std::string, PerambFileName,
|
std::string, PerambFileName,
|
||||||
std::string, solve,
|
std::string, solve,
|
||||||
std::string, nvec_reduced,
|
int, nvec_reduced,
|
||||||
std::string, LI_reduced,
|
int, LI_reduced,
|
||||||
std::string, DistilParams);
|
std::string, DistilParams);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -133,8 +133,8 @@ void TPerambFromSolve<FImpl>::execute(void)
|
|||||||
const int Nt{env().getDim(Tdir)};
|
const int Nt{env().getDim(Tdir)};
|
||||||
const bool full_tdil{ dp.TI == Nt };
|
const bool full_tdil{ dp.TI == Nt };
|
||||||
const int Nt_inv{ full_tdil ? 1 : dp.TI };
|
const int Nt_inv{ full_tdil ? 1 : dp.TI };
|
||||||
const int nvec_reduced{par().nvec_reduced.empty() ? dp.nvec : std::stoi(par().nvec_reduced)};
|
const int nvec_reduced{par().nvec_reduced};
|
||||||
const int LI_reduced{ par().LI_reduced.empty() ? dp.LI : std::stoi(par().LI_reduced)};
|
const int LI_reduced{ par().LI_reduced};
|
||||||
auto &perambulator = envGet(PerambTensor, getName());
|
auto &perambulator = envGet(PerambTensor, getName());
|
||||||
auto &solve = envGet(std::vector<FermionField>, par().solve);
|
auto &solve = envGet(std::vector<FermionField>, par().solve);
|
||||||
auto &epack = envGet(Grid::Hadrons::EigenPack<LatticeColourVector>, par().eigenPack);
|
auto &epack = envGet(Grid::Hadrons::EigenPack<LatticeColourVector>, par().eigenPack);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user