1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-05 11:45:56 +01:00

Add propagator expansion terms as inputs to ScalarFV

This commit is contained in:
James Harrison 2017-03-27 13:24:51 +01:00
parent 85516e9c7c
commit 483fd3cfa1
2 changed files with 12 additions and 4 deletions

View File

@ -15,7 +15,12 @@ TScalarFV::TScalarFV(const std::string name)
// dependencies/products ///////////////////////////////////////////////////////
std::vector<std::string> TScalarFV::getInput(void)
{
std::vector<std::string> in = {par().source, par().emField};
std::string prop0Name = par().scalarProp + "_0";
std::string propD1Name = par().scalarProp + "_D1";
std::string propD1D1Name = par().scalarProp + "_D1D1";
std::string propD2Name = par().scalarProp + "_D2";
std::vector<std::string> in = {par().source, par().emField, par().scalarProp,
prop0Name, propD1Name, propD1D1Name, propD2Name};
return in;
}

View File

@ -18,14 +18,17 @@ public:
GRID_SERIALIZABLE_CLASS_MEMBERS(ScalarFVPar,
std::string, emField,
std::string, source,
double, mass,
std::string, scalarProp,
double, charge,
std::string, output,
unsigned int, i);
std::string, output);
};
class TScalarFV: public Module<ScalarFVPar>
{
public:
SCALAR_TYPE_ALIASES(SIMPL,);
typedef PhotonR::GaugeField EmField;
typedef PhotonR::GaugeLinkField EmComp;
public:
// constructor
TScalarFV(const std::string name);