mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	Compile fix
This commit is contained in:
		@@ -120,6 +120,10 @@ void siteRectangle(GaugeMat &plaq,const std::vector<GaugeMat> &U, const int mu,
 | 
				
			|||||||
  */
 | 
					  */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 typedef WilsonLoops<LatticeColourMatrix,LatticeGaugeField> ColourWilsonLoops;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}}
 | 
					}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,12 @@
 | 
				
			|||||||
#include <Grid.h>
 | 
					#include <Grid.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <qcd/utils/CovariantCshift.h>
 | 
				
			||||||
 | 
					#include <qcd/utils/WilsonLoops.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using namespace std;
 | 
					using namespace std;
 | 
				
			||||||
using namespace Grid;
 | 
					using namespace Grid;
 | 
				
			||||||
using namespace Grid::QCD;
 | 
					using namespace Grid::QCD;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main (int argc, char ** argv)
 | 
					int main (int argc, char ** argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  Grid_init(&argc,&argv);
 | 
					  Grid_init(&argc,&argv);
 | 
				
			||||||
@@ -96,14 +96,14 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
  Complex p  = TensorRemove(Tp);
 | 
					  Complex p  = TensorRemove(Tp);
 | 
				
			||||||
  std::cout << "calculated plaquettes " <<p*PlaqScale<<std::endl;
 | 
					  std::cout << "calculated plaquettes " <<p*PlaqScale<<std::endl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  RealD avg_plaq =  WilsonLoops::avgPlaquette(Umu);
 | 
					  RealD avg_plaq = ColourWilsonLoops::avgPlaquette(Umu);
 | 
				
			||||||
  std::cout << "NEW : calculated real plaquettes " <<avg_plaq<<std::endl;
 | 
					  std::cout << "NEW : calculated real plaquettes " <<avg_plaq<<std::endl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  RealD stap_plaq=0.0;
 | 
					  RealD stap_plaq=0.0;
 | 
				
			||||||
  LatticeColourMatrix stap(&Fine);
 | 
					  LatticeColourMatrix stap(&Fine);
 | 
				
			||||||
  LatticeComplex stap_tr(&Fine);
 | 
					  LatticeComplex stap_tr(&Fine);
 | 
				
			||||||
  for(int mu=0;mu<Nd;mu++){
 | 
					  for(int mu=0;mu<Nd;mu++){
 | 
				
			||||||
    WilsonLoops::Staple(stap,Umu,mu);
 | 
					    ColourWilsonLoops::Staple(stap,Umu,mu);
 | 
				
			||||||
    stap_tr = trace(stap*adj(U[mu]));
 | 
					    stap_tr = trace(stap*adj(U[mu]));
 | 
				
			||||||
    TComplex Ts = sum(stap_tr);
 | 
					    TComplex Ts = sum(stap_tr);
 | 
				
			||||||
    Complex s  = TensorRemove(Ts);
 | 
					    Complex s  = TensorRemove(Ts);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user