From b821dde0200dc211c375c14522dbda8d263721e0 Mon Sep 17 00:00:00 2001 From: Michael Marshall Date: Fri, 18 Jan 2019 13:14:28 +0000 Subject: [PATCH] Initial version --- Hadrons/Modules/MDistil/DistilVectors.cc | 7 ++ Hadrons/Modules/MDistil/DistilVectors.hpp | 85 ++++++++++++++++ Hadrons/Modules/MDistil/LapEvec.cc | 37 +++++++ Hadrons/Modules/MDistil/LapEvec.hpp | 114 ++++++++++++++++++++++ Hadrons/Modules/MDistil/PerambLight.cc | 7 ++ Hadrons/Modules/MDistil/PerambLight.hpp | 85 ++++++++++++++++ 6 files changed, 335 insertions(+) create mode 100644 Hadrons/Modules/MDistil/DistilVectors.cc create mode 100644 Hadrons/Modules/MDistil/DistilVectors.hpp create mode 100644 Hadrons/Modules/MDistil/LapEvec.cc create mode 100644 Hadrons/Modules/MDistil/LapEvec.hpp create mode 100644 Hadrons/Modules/MDistil/PerambLight.cc create mode 100644 Hadrons/Modules/MDistil/PerambLight.hpp diff --git a/Hadrons/Modules/MDistil/DistilVectors.cc b/Hadrons/Modules/MDistil/DistilVectors.cc new file mode 100644 index 00000000..3f04a18b --- /dev/null +++ b/Hadrons/Modules/MDistil/DistilVectors.cc @@ -0,0 +1,7 @@ +#include + +using namespace Grid; +using namespace Hadrons; +using namespace MDistil; + +template class Grid::Hadrons::MDistil::TDistilVectors; diff --git a/Hadrons/Modules/MDistil/DistilVectors.hpp b/Hadrons/Modules/MDistil/DistilVectors.hpp new file mode 100644 index 00000000..d5008170 --- /dev/null +++ b/Hadrons/Modules/MDistil/DistilVectors.hpp @@ -0,0 +1,85 @@ +#ifndef Hadrons_MDistil_DistilVectors_hpp_ +#define Hadrons_MDistil_DistilVectors_hpp_ + +#include +#include +#include + +BEGIN_HADRONS_NAMESPACE + +/****************************************************************************** + * DistilVectors * + ******************************************************************************/ +BEGIN_MODULE_NAMESPACE(MDistil) + +class DistilVectorsPar: Serializable +{ +public: + GRID_SERIALIZABLE_CLASS_MEMBERS(DistilVectorsPar, + unsigned int, i); +}; + +template +class TDistilVectors: public Module +{ +public: + // constructor + TDistilVectors(const std::string name); + // destructor + virtual ~TDistilVectors(void) {}; + // dependency relation + virtual std::vector getInput(void); + virtual std::vector getOutput(void); + // setup + virtual void setup(void); + // execution + virtual void execute(void); +}; + +MODULE_REGISTER_TMP(DistilVectors, TDistilVectors, MDistil); + +/****************************************************************************** + * TDistilVectors implementation * + ******************************************************************************/ +// constructor ///////////////////////////////////////////////////////////////// +template +TDistilVectors::TDistilVectors(const std::string name) +: Module(name) +{} + +// dependencies/products /////////////////////////////////////////////////////// +template +std::vector TDistilVectors::getInput(void) +{ + std::vector in; + + return in; +} + +template +std::vector TDistilVectors::getOutput(void) +{ + std::vector out = {getName()}; + + return out; +} + +// setup /////////////////////////////////////////////////////////////////////// +template +void TDistilVectors::setup(void) +{ + +} + +// execution /////////////////////////////////////////////////////////////////// +template +void TDistilVectors::execute(void) +{ + +} + +END_MODULE_NAMESPACE + +END_HADRONS_NAMESPACE + +#endif // Hadrons_MDistil_DistilVectors_hpp_ diff --git a/Hadrons/Modules/MDistil/LapEvec.cc b/Hadrons/Modules/MDistil/LapEvec.cc new file mode 100644 index 00000000..488eb48c --- /dev/null +++ b/Hadrons/Modules/MDistil/LapEvec.cc @@ -0,0 +1,37 @@ +/************************************************************************************* + + Grid physics library, www.github.com/paboyle/Grid + + Source file: Hadrons/Modules/MDistil/LapEvec.cc + + Copyright (C) 2015-2019 + + *** MM making a change on Tesseract ** + Author: Felix Erben + Author: Michael Marshall + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + See the full license in the file "LICENSE" in the top level distribution directory + *************************************************************************************/ +/* END LEGAL */ + +#include + +using namespace Grid; +using namespace Hadrons; +using namespace MDistil; + +template class Grid::Hadrons::MDistil::TLapEvec; diff --git a/Hadrons/Modules/MDistil/LapEvec.hpp b/Hadrons/Modules/MDistil/LapEvec.hpp new file mode 100644 index 00000000..f0c93607 --- /dev/null +++ b/Hadrons/Modules/MDistil/LapEvec.hpp @@ -0,0 +1,114 @@ +/************************************************************************************* + + Grid physics library, www.github.com/paboyle/Grid + + Source file: Hadrons/Modules/MDistil/LapEvec.hpp + + Copyright (C) 2015-2019 + + Author: Felix Erben + Author: Michael Marshall + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + See the full license in the file "LICENSE" in the top level distribution directory + *************************************************************************************/ +/* END LEGAL */ + +#ifndef Hadrons_MDistil_LapEvec_hpp_ +#define Hadrons_MDistil_LapEvec_hpp_ + +#include +#include +#include + +BEGIN_HADRONS_NAMESPACE + +/****************************************************************************** + * LapEvec * + ******************************************************************************/ +BEGIN_MODULE_NAMESPACE(MDistil) + +class LapEvecPar: Serializable +{ +public: + GRID_SERIALIZABLE_CLASS_MEMBERS(LapEvecPar, + unsigned int, i); +}; + +template +class TLapEvec: public Module +{ +public: + // constructor + TLapEvec(const std::string name); + // destructor + virtual ~TLapEvec(void) {}; + // dependency relation + virtual std::vector getInput(void); + virtual std::vector getOutput(void); + // setup + virtual void setup(void); + // execution + virtual void execute(void); +}; + +MODULE_REGISTER_TMP(LapEvec, TLapEvec, MDistil); + +/****************************************************************************** + * TLapEvec implementation * + ******************************************************************************/ +// constructor ///////////////////////////////////////////////////////////////// +template +TLapEvec::TLapEvec(const std::string name) +: Module(name) +{} + +// dependencies/products /////////////////////////////////////////////////////// +template +std::vector TLapEvec::getInput(void) +{ + std::vector in; + + return in; +} + +template +std::vector TLapEvec::getOutput(void) +{ + std::vector out = {getName()}; + + return out; +} + +// setup /////////////////////////////////////////////////////////////////////// +template +void TLapEvec::setup(void) +{ + +} + +// execution /////////////////////////////////////////////////////////////////// +template +void TLapEvec::execute(void) +{ + +} + +END_MODULE_NAMESPACE + +END_HADRONS_NAMESPACE + +#endif // Hadrons_MDistil_LapEvec_hpp_ diff --git a/Hadrons/Modules/MDistil/PerambLight.cc b/Hadrons/Modules/MDistil/PerambLight.cc new file mode 100644 index 00000000..bcb21d71 --- /dev/null +++ b/Hadrons/Modules/MDistil/PerambLight.cc @@ -0,0 +1,7 @@ +#include + +using namespace Grid; +using namespace Hadrons; +using namespace MDistil; + +template class Grid::Hadrons::MDistil::Tperambulator_l; diff --git a/Hadrons/Modules/MDistil/PerambLight.hpp b/Hadrons/Modules/MDistil/PerambLight.hpp new file mode 100644 index 00000000..91f776a0 --- /dev/null +++ b/Hadrons/Modules/MDistil/PerambLight.hpp @@ -0,0 +1,85 @@ +#ifndef Hadrons_MDistil_perambulator_l_hpp_ +#define Hadrons_MDistil_perambulator_l_hpp_ + +#include +#include +#include + +BEGIN_HADRONS_NAMESPACE + +/****************************************************************************** + * perambulator_l * + ******************************************************************************/ +BEGIN_MODULE_NAMESPACE(MDistil) + +class perambulator_lPar: Serializable +{ +public: + GRID_SERIALIZABLE_CLASS_MEMBERS(perambulator_lPar, + unsigned int, i); +}; + +template +class Tperambulator_l: public Module +{ +public: + // constructor + Tperambulator_l(const std::string name); + // destructor + virtual ~Tperambulator_l(void) {}; + // dependency relation + virtual std::vector getInput(void); + virtual std::vector getOutput(void); + // setup + virtual void setup(void); + // execution + virtual void execute(void); +}; + +MODULE_REGISTER_TMP(perambulator_l, Tperambulator_l, MDistil); + +/****************************************************************************** + * Tperambulator_l implementation * + ******************************************************************************/ +// constructor ///////////////////////////////////////////////////////////////// +template +Tperambulator_l::Tperambulator_l(const std::string name) +: Module(name) +{} + +// dependencies/products /////////////////////////////////////////////////////// +template +std::vector Tperambulator_l::getInput(void) +{ + std::vector in; + + return in; +} + +template +std::vector Tperambulator_l::getOutput(void) +{ + std::vector out = {getName()}; + + return out; +} + +// setup /////////////////////////////////////////////////////////////////////// +template +void Tperambulator_l::setup(void) +{ + +} + +// execution /////////////////////////////////////////////////////////////////// +template +void Tperambulator_l::execute(void) +{ + +} + +END_MODULE_NAMESPACE + +END_HADRONS_NAMESPACE + +#endif // Hadrons_MDistil_perambulator_l_hpp_