mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	more stochastic QED fixes
This commit is contained in:
		@@ -57,6 +57,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
 | 
				
			|||||||
////////////////////////////////////////////
 | 
					////////////////////////////////////////////
 | 
				
			||||||
// Gauge Actions
 | 
					// Gauge Actions
 | 
				
			||||||
////////////////////////////////////////////
 | 
					////////////////////////////////////////////
 | 
				
			||||||
 | 
					#include <Grid/qcd/action/gauge/Photon.h>
 | 
				
			||||||
#include <Grid/qcd/action/gauge/WilsonGaugeAction.h>
 | 
					#include <Grid/qcd/action/gauge/WilsonGaugeAction.h>
 | 
				
			||||||
#include <Grid/qcd/action/gauge/PlaqPlusRectangleAction.h>
 | 
					#include <Grid/qcd/action/gauge/PlaqPlusRectangleAction.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -124,7 +124,7 @@ namespace QCD{
 | 
				
			|||||||
          LatticeCoordinate(coor,d);
 | 
					          LatticeCoordinate(coor,d);
 | 
				
			||||||
          spNrm = spNrm + coor*coor;
 | 
					          spNrm = spNrm + coor*coor;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        out = where(spNrm == 0, 0.*out, out);
 | 
					        out = where(spNrm == Integer(0), 0.*out, out);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -149,7 +149,7 @@ namespace QCD{
 | 
				
			|||||||
  template<class Gimpl>
 | 
					  template<class Gimpl>
 | 
				
			||||||
  void Photon<Gimpl>::StochasticField(GaugeField &out, GridParallelRNG &rng)
 | 
					  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;
 | 
					    const unsigned int nd = grid->_ndimension;
 | 
				
			||||||
    GaugeLinkField     sqrtK2Inv(grid), r(grid);
 | 
					    GaugeLinkField     sqrtK2Inv(grid), r(grid);
 | 
				
			||||||
    GaugeField         aTilde(grid);
 | 
					    GaugeField         aTilde(grid);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user