1
0
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:
2016-05-12 11:59:28 +01:00
parent 3d78ed03ef
commit 362f255100
24 changed files with 216 additions and 209 deletions

View File

@@ -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