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

Add overloaded Photon constructors, with default parameters for IR improvements and infinite-volume G(x=0).

This commit is contained in:
James Harrison
2018-03-06 16:27:26 +00:00
parent ec3954ff5f
commit c793947209
2 changed files with 23 additions and 2 deletions

View File

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