mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Added unit tests on the representation transformations
Status: Passing all tests
This commit is contained in:
		@@ -103,7 +103,7 @@ class NerscHmcRunnerTemplate {
 | 
			
		||||
 | 
			
		||||
    // Create integrator, including the smearing policy
 | 
			
		||||
    // Smearing policy, only defined for Nc=3
 | 
			
		||||
    
 | 
			
		||||
    /*
 | 
			
		||||
    std::cout << GridLogDebug << " Creating the Stout class\n";
 | 
			
		||||
    double rho = 0.1;  // smearing parameter, now hardcoded
 | 
			
		||||
    int Nsmear = 1;    // number of smearing levels
 | 
			
		||||
@@ -111,7 +111,7 @@ class NerscHmcRunnerTemplate {
 | 
			
		||||
    std::cout << GridLogDebug << " Creating the SmearedConfiguration class\n";
 | 
			
		||||
    //SmearedConfiguration<Gimpl> SmearingPolicy(UGrid, Nsmear, Stout);
 | 
			
		||||
    std::cout << GridLogDebug << " done\n";
 | 
			
		||||
    
 | 
			
		||||
    */
 | 
			
		||||
    //////////////
 | 
			
		||||
    NoSmearing<Gimpl> SmearingPolicy;
 | 
			
		||||
    typedef MinimumNorm2<GaugeField, NoSmearing<Gimpl>, RepresentationsPolicy >
 | 
			
		||||
 
 | 
			
		||||
@@ -120,6 +120,7 @@ class Integrator {
 | 
			
		||||
        FieldType forceR(U._grid);
 | 
			
		||||
        // Implement smearing only for the fundamental representation now
 | 
			
		||||
        repr_set.at(a)->deriv(Rep.U, forceR);
 | 
			
		||||
        forceR -= adj(forceR);
 | 
			
		||||
        GF force =
 | 
			
		||||
            Rep.RtoFundamentalProject(forceR);  // Ta for the fundamental rep
 | 
			
		||||
        std::cout << GridLogIntegrator << "Hirep Force average: "
 | 
			
		||||
@@ -200,10 +201,12 @@ class Integrator {
 | 
			
		||||
    template <class FieldType, class Repr>
 | 
			
		||||
    void operator()(std::vector<Action<FieldType>*> repr_set, Repr& Rep,
 | 
			
		||||
                    GridParallelRNG& pRNG) {
 | 
			
		||||
      for (int a = 0; a < repr_set.size(); ++a)
 | 
			
		||||
      for (int a = 0; a < repr_set.size(); ++a){
 | 
			
		||||
        repr_set.at(a)->refresh(Rep.U, pRNG);
 | 
			
		||||
      
 | 
			
		||||
      std::cout << GridLogDebug << "Hirep refreshing pseudofermions" << std::endl;
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
  } refresh_hireps{};
 | 
			
		||||
 | 
			
		||||
  // Initialization of momenta and actions
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user