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

Merge branch 'feature/feynman-rules' into feature/qed-fvol

This commit is contained in:
Antonin Portelli 2016-10-21 15:23:31 +01:00
commit 26d124283e
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
////////////////////////////////////////////
// Gauge Actions
////////////////////////////////////////////
#include <Grid/qcd/action/gauge/Photon.h>
#include <Grid/qcd/action/gauge/WilsonGaugeAction.h>
#include <Grid/qcd/action/gauge/PlaqPlusRectangleAction.h>

View File

@ -124,7 +124,7 @@ namespace QCD{
LatticeCoordinate(coor,d);
spNrm = spNrm + coor*coor;
}
out = where(spNrm == 0, 0.*out, out);
out = where(spNrm == Integer(0), 0.*out, out);
break;
}
@ -149,7 +149,7 @@ namespace QCD{
template<class Gimpl>
void Photon<Gimpl>::StochasticField(GaugeField &out, GridParallelRNG &rng)
{
auto *grid = out._grid;
auto *grid = dynamic_cast<GridCartesian *>(out._grid);
const unsigned int nd = grid->_ndimension;
GaugeLinkField sqrtK2Inv(grid), r(grid);
GaugeField aTilde(grid);