1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-15 06:17:05 +01:00

Implement IR improvement, with coefficients set in input file.

This commit is contained in:
James Harrison
2018-02-02 11:56:51 +00:00
parent 5f85473d6b
commit f37ed4958b
4 changed files with 11 additions and 28 deletions

View File

@ -67,7 +67,8 @@ void TStochEm::execute(void)
{
LOG(Message) << "Generating stochastic EM potential..." << std::endl;
PhotonR photon(par().gauge, par().zmScheme, par().improvement);
std::vector<Real> improvements = strToVec<Real>(par().improvement);
PhotonR photon(par().gauge, par().zmScheme, improvements);
auto &a = envGet(EmField, getName());
auto &w = envGet(EmComp, "_" + getName() + "_weight");

View File

@ -45,7 +45,7 @@ public:
GRID_SERIALIZABLE_CLASS_MEMBERS(StochEmPar,
PhotonR::Gauge, gauge,
PhotonR::ZmScheme, zmScheme,
Integer, improvement);
std::string, improvement);
};
class TStochEm: public Module<StochEmPar>

View File

@ -61,7 +61,7 @@ void TUnitEm::setup(void)
// execution ///////////////////////////////////////////////////////////////////
void TUnitEm::execute(void)
{
PhotonR photon(0, 0, 0); // Just chose arbitrary input values here
PhotonR photon(0, 0, std::vector<Real>()); // Just chose arbitrary input values here
auto &a = envGet(EmField, getName());
LOG(Message) << "Generating unit EM potential..." << std::endl;
photon.UnitField(a);