mirror of
https://github.com/paboyle/Grid.git
synced 2025-12-24 06:34:29 +00:00
Hadrons: module parameters can now be accessed from outside
This commit is contained in:
@@ -35,15 +35,9 @@ using namespace Hadrons;
|
||||
******************************************************************************/
|
||||
// constructor /////////////////////////////////////////////////////////////////
|
||||
GLoad::GLoad(const std::string name)
|
||||
: Module(name)
|
||||
: Module<GLoadPar>(name)
|
||||
{}
|
||||
|
||||
// parse parameters ////////////////////////////////////////////////////////////
|
||||
void GLoad::parseParameters(XmlReader &reader, const std::string name)
|
||||
{
|
||||
read(reader, name, par_);
|
||||
}
|
||||
|
||||
// dependencies/products ///////////////////////////////////////////////////////
|
||||
std::vector<std::string> GLoad::getInput(void)
|
||||
{
|
||||
@@ -69,7 +63,7 @@ void GLoad::setup(void)
|
||||
void GLoad::execute(void)
|
||||
{
|
||||
NerscField header;
|
||||
std::string fileName = par_.file + "."
|
||||
std::string fileName = par().file + "."
|
||||
+ std::to_string(env().getTrajectory());
|
||||
|
||||
LOG(Message) << "Loading NERSC configuration from file '" << fileName
|
||||
|
||||
Reference in New Issue
Block a user