1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

Hadrons: eigenpack load module with 32bit I/O

This commit is contained in:
Antonin Portelli 2018-10-02 21:07:56 +01:00
parent 118cca4681
commit b351103c29
3 changed files with 5 additions and 3 deletions

View File

@ -228,7 +228,8 @@ template <typename F, typename FIo = F>
class EigenPack
{
public:
typedef F Field;
typedef F Field;
typedef FIo FieldIo;
public:
std::vector<RealD> eval;
std::vector<F> evec;

View File

@ -32,4 +32,4 @@ using namespace Hadrons;
using namespace MIO;
template class Grid::Hadrons::MIO::TLoadEigenPack<FermionEigenPack<FIMPL>>;
template class Grid::Hadrons::MIO::TLoadEigenPack<FermionEigenPack<FIMPL, FIMPLF>>;

View File

@ -54,7 +54,7 @@ template <typename Pack>
class TLoadEigenPack: public Module<LoadEigenPackPar>
{
public:
typedef EigenPack<typename Pack::Field> BasePack;
typedef EigenPack<typename Pack::Field, typename Pack::FieldIo> BasePack;
public:
// constructor
TLoadEigenPack(const std::string name);
@ -70,6 +70,7 @@ public:
};
MODULE_REGISTER_TMP(LoadFermionEigenPack, TLoadEigenPack<FermionEigenPack<FIMPL>>, MIO);
MODULE_REGISTER_TMP(LoadFermionEigenPackIo32, ARG(TLoadEigenPack<FermionEigenPack<FIMPL, FIMPLF>>), MIO);
/******************************************************************************
* TLoadEigenPack implementation *