mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	SU3 restored + output filename for mesons and baryons fixed.
This commit is contained in:
		@@ -112,7 +112,9 @@ void TBaryon<FImpl1, FImpl2, FImpl3>::execute(void)
 | 
				
			|||||||
                 << " quarks '" << par().q1 << "', '" << par().q2 << "', and '"
 | 
					                 << " quarks '" << par().q1 << "', '" << par().q2 << "', and '"
 | 
				
			||||||
                 << par().q3 << "'" << std::endl;
 | 
					                 << par().q3 << "'" << std::endl;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    CorrWriter             writer(par().output);
 | 
					    std::string output_name = par().output + "." + std::to_string(env().getTrajectory());
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    CorrWriter             writer(output_name);
 | 
				
			||||||
    PropagatorField1      &q1 = *env().template getObject<PropagatorField1>(par().q1);
 | 
					    PropagatorField1      &q1 = *env().template getObject<PropagatorField1>(par().q1);
 | 
				
			||||||
    PropagatorField2      &q2 = *env().template getObject<PropagatorField2>(par().q2);
 | 
					    PropagatorField2      &q2 = *env().template getObject<PropagatorField2>(par().q2);
 | 
				
			||||||
    PropagatorField3      &q3 = *env().template getObject<PropagatorField3>(par().q2);
 | 
					    PropagatorField3      &q3 = *env().template getObject<PropagatorField3>(par().q2);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -165,8 +165,10 @@ void TMeson<FImpl1, FImpl2>::execute(void)
 | 
				
			|||||||
    LOG(Message) << "Computing meson contractions '" << getName() << "' using"
 | 
					    LOG(Message) << "Computing meson contractions '" << getName() << "' using"
 | 
				
			||||||
                 << " quarks '" << par().q1 << "' and '" << par().q2 << "'"
 | 
					                 << " quarks '" << par().q1 << "' and '" << par().q2 << "'"
 | 
				
			||||||
                 << std::endl;
 | 
					                 << std::endl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    std::string output_name = par().output + "." + std::to_string(env().getTrajectory());
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    CorrWriter             writer(par().output);
 | 
					    CorrWriter             writer(output_name);
 | 
				
			||||||
    std::vector<TComplex>  buf;
 | 
					    std::vector<TComplex>  buf;
 | 
				
			||||||
    std::vector<Result>    result;
 | 
					    std::vector<Result>    result;
 | 
				
			||||||
    Gamma                  g5(Gamma::Algebra::Gamma5);
 | 
					    Gamma                  g5(Gamma::Algebra::Gamma5);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,5 +65,5 @@ void TRandom::execute(void)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    LOG(Message) << "Generating random gauge configuration" << std::endl;
 | 
					    LOG(Message) << "Generating random gauge configuration" << std::endl;
 | 
				
			||||||
    LatticeGaugeField &U = *env().createLattice<LatticeGaugeField>(getName());
 | 
					    LatticeGaugeField &U = *env().createLattice<LatticeGaugeField>(getName());
 | 
				
			||||||
    SU4::HotConfiguration(*env().get4dRng(), U);
 | 
					    SU3::HotConfiguration(*env().get4dRng(), U);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,5 +65,5 @@ void TUnit::execute(void)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    LOG(Message) << "Creating unit gauge configuration" << std::endl;
 | 
					    LOG(Message) << "Creating unit gauge configuration" << std::endl;
 | 
				
			||||||
    LatticeGaugeField &U = *env().createLattice<LatticeGaugeField>(getName());
 | 
					    LatticeGaugeField &U = *env().createLattice<LatticeGaugeField>(getName());
 | 
				
			||||||
    SU4::ColdConfiguration(*env().get4dRng(), U);
 | 
					    SU3::ColdConfiguration(*env().get4dRng(), U);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,7 +49,7 @@ namespace QCD {
 | 
				
			|||||||
    static const int Zm = 6;
 | 
					    static const int Zm = 6;
 | 
				
			||||||
    static const int Tm = 7;
 | 
					    static const int Tm = 7;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    static const int Nc=4;
 | 
					    static const int Nc=3;
 | 
				
			||||||
    static const int Ns=4;
 | 
					    static const int Ns=4;
 | 
				
			||||||
    static const int Nd=4;
 | 
					    static const int Nd=4;
 | 
				
			||||||
    static const int Nhs=2; // half spinor
 | 
					    static const int Nhs=2; // half spinor
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user