1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00
Grid/extras/Hadrons/Modules/MScalar/ScalarVP.cc

47 lines
1.3 KiB
C++
Raw Normal View History

2017-03-27 15:02:16 +01:00
#include <Grid/Hadrons/Modules/MScalar/ScalarVP.hpp>
2017-03-21 11:39:46 +00:00
using namespace Grid;
using namespace Hadrons;
using namespace MScalar;
/******************************************************************************
2017-03-27 15:02:16 +01:00
* TScalarVP implementation *
2017-03-21 11:39:46 +00:00
******************************************************************************/
// constructor /////////////////////////////////////////////////////////////////
2017-03-27 15:02:16 +01:00
TScalarVP::TScalarVP(const std::string name)
: Module<ScalarVPPar>(name)
2017-03-21 11:39:46 +00:00
{}
// dependencies/products ///////////////////////////////////////////////////////
2017-03-27 15:02:16 +01:00
std::vector<std::string> TScalarVP::getInput(void)
2017-03-21 11:39:46 +00:00
{
2017-03-27 15:02:16 +01:00
prop0Name_ = par().scalarProp + "_0";
propD1Name_ = par().scalarProp + "_D1";
propD1D1Name_ = par().scalarProp + "_D1D1";
propD2Name_ = par().scalarProp + "_D2";
std::vector<std::string> in = {par().source, par().emField, par().scalarProp,
2017-03-27 15:02:16 +01:00
prop0Name_, propD1Name_, propD1D1Name_,
propD2Name_};
2017-03-21 11:39:46 +00:00
return in;
}
2017-03-27 15:02:16 +01:00
std::vector<std::string> TScalarVP::getOutput(void)
2017-03-21 11:39:46 +00:00
{
std::vector<std::string> out = {getName()};
return out;
}
// setup ///////////////////////////////////////////////////////////////////////
2017-03-27 15:02:16 +01:00
void TScalarVP::setup(void)
2017-03-21 11:39:46 +00:00
{
}
// execution ///////////////////////////////////////////////////////////////////
2017-03-27 15:02:16 +01:00
void TScalarVP::execute(void)
2017-03-21 11:39:46 +00:00
{
}