1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-16 23:07:05 +01:00

Hadrons: modules remember their factory registration name

This commit is contained in:
2016-12-14 17:59:45 +00:00
parent 013e710c7d
commit 3af663e17b
17 changed files with 87 additions and 74 deletions

View File

@ -32,22 +32,22 @@ using namespace Hadrons;
using namespace MGauge;
/******************************************************************************
* Load implementation *
* TLoad implementation *
******************************************************************************/
// constructor /////////////////////////////////////////////////////////////////
Load::Load(const std::string name)
TLoad::TLoad(const std::string name)
: Module<LoadPar>(name)
{}
// dependencies/products ///////////////////////////////////////////////////////
std::vector<std::string> Load::getInput(void)
std::vector<std::string> TLoad::getInput(void)
{
std::vector<std::string> in;
return in;
}
std::vector<std::string> Load::getOutput(void)
std::vector<std::string> TLoad::getOutput(void)
{
std::vector<std::string> out = {getName()};
@ -55,13 +55,13 @@ std::vector<std::string> Load::getOutput(void)
}
// setup ///////////////////////////////////////////////////////////////////////
void Load::setup(void)
void TLoad::setup(void)
{
env().registerLattice<LatticeGaugeField>(getName());
}
// execution ///////////////////////////////////////////////////////////////////
void Load::execute(void)
void TLoad::execute(void)
{
NerscField header;
std::string fileName = par().file + "."