1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00

serialisable Photon parameters

This commit is contained in:
Antonin Portelli 2016-12-20 12:41:01 +01:00
parent 2af9ab9034
commit 9ac3ac41df

View File

@ -28,6 +28,7 @@
#ifndef QCD_PHOTON_ACTION_H
#define QCD_PHOTON_ACTION_H
namespace Grid{
namespace QCD{
@ -36,8 +37,8 @@ namespace QCD{
{
public:
INHERIT_GIMPL_TYPES(Gimpl);
enum class Gauge {Feynman, Coulomb, Landau};
enum class ZmScheme {QedL, QedTL};
GRID_SERIALIZABLE_ENUM(Gauge, undef, feynman, 1, coulomb, 2, landau, 3);
GRID_SERIALIZABLE_ENUM(ZmScheme, undef, qedL, 1, qedTL, 2);
public:
Photon(Gauge gauge, ZmScheme zmScheme);
virtual ~Photon(void) = default;
@ -104,7 +105,7 @@ namespace QCD{
switch (zmScheme_)
{
case ZmScheme::QedTL:
case ZmScheme::qedTL:
{
std::vector<int> zm(nd,0);
TComplex Tzero = Complex(0.0,0.0);
@ -113,7 +114,7 @@ namespace QCD{
break;
}
case ZmScheme::QedL:
case ZmScheme::qedL:
{
LatticeInteger spNrm(grid), coor(grid);
GaugeLinkField z(grid);