1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-10 06:00:45 +01: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 #ifndef QCD_PHOTON_ACTION_H
#define QCD_PHOTON_ACTION_H #define QCD_PHOTON_ACTION_H
namespace Grid{ namespace Grid{
namespace QCD{ namespace QCD{
@ -36,8 +37,8 @@ namespace QCD{
{ {
public: public:
INHERIT_GIMPL_TYPES(Gimpl); INHERIT_GIMPL_TYPES(Gimpl);
enum class Gauge {Feynman, Coulomb, Landau}; GRID_SERIALIZABLE_ENUM(Gauge, undef, feynman, 1, coulomb, 2, landau, 3);
enum class ZmScheme {QedL, QedTL}; GRID_SERIALIZABLE_ENUM(ZmScheme, undef, qedL, 1, qedTL, 2);
public: public:
Photon(Gauge gauge, ZmScheme zmScheme); Photon(Gauge gauge, ZmScheme zmScheme);
virtual ~Photon(void) = default; virtual ~Photon(void) = default;
@ -104,7 +105,7 @@ namespace QCD{
switch (zmScheme_) switch (zmScheme_)
{ {
case ZmScheme::QedTL: case ZmScheme::qedTL:
{ {
std::vector<int> zm(nd,0); std::vector<int> zm(nd,0);
TComplex Tzero = Complex(0.0,0.0); TComplex Tzero = Complex(0.0,0.0);
@ -113,7 +114,7 @@ namespace QCD{
break; break;
} }
case ZmScheme::QedL: case ZmScheme::qedL:
{ {
LatticeInteger spNrm(grid), coor(grid); LatticeInteger spNrm(grid), coor(grid);
GaugeLinkField z(grid); GaugeLinkField z(grid);