mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-10 17:58:06 +01:00
Hadrons: new solver exposing fermion matrix and generic source/solve import/export
This commit is contained in:
1 parent
8db0ef9736
commit
91405de3f7
11 files changed
+92
-20
No files matched your search
@@ -32,6 +32,7 @@ See the full license in the file "LICENSE" in the top level distribution directo
|
||||
#include <Grid/Hadrons/Global.hpp>
|
||||
#include <Grid/Hadrons/Module.hpp>
|
||||
#include <Grid/Hadrons/ModuleFactory.hpp>
|
||||
#include <Grid/Hadrons/Solver.hpp>
|
||||
#include <Grid/Hadrons/EigenPack.hpp>
|
||||
|
||||
BEGIN_HADRONS_NAMESPACE
|
||||
@@ -55,7 +56,8 @@ template <typename FImpl, int nBasis>
|
||||
class TRBPrecCG: public Module<RBPrecCGPar>
|
||||
{
|
||||
public:
|
||||
FGS_TYPE_ALIASES(FImpl,);
|
||||
FG_TYPE_ALIASES(FImpl,);
|
||||
SOLVER_TYPE_ALIASES(FImpl,);
|
||||
typedef FermionEigenPack<FImpl> EPack;
|
||||
typedef CoarseFermionEigenPack<FImpl, nBasis> CoarseEPack;
|
||||
typedef std::shared_ptr<Guesser<FermionField>> GuesserPt;
|
||||
@@ -175,7 +177,7 @@ void TRBPrecCG<FImpl, nBasis>::setup(void)
|
||||
|
||||
schurSolver(mat, source, sol, *guesser);
|
||||
};
|
||||
envCreate(SolverFn, getName(), Ls, solver);
|
||||
envCreate(Solver, getName(), Ls, solver, mat);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user