mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Hadrons: some renamings
This commit is contained in:
		@@ -48,7 +48,7 @@ BEGIN_MODULE_NAMESPACE(MGauge)
 | 
			
		||||
*  with
 | 
			
		||||
*
 | 
			
		||||
*  - gauge: U_mu(x): gauge field
 | 
			
		||||
*  - photon: A_mu(x): electromagnetic photon field
 | 
			
		||||
*  - emField: A_mu(x): electromagnetic photon field
 | 
			
		||||
*  - e: value for the elementary charge
 | 
			
		||||
*  - q: charge in units of e
 | 
			
		||||
*
 | 
			
		||||
@@ -60,7 +60,7 @@ class ElectrifyPar: Serializable
 | 
			
		||||
public:
 | 
			
		||||
    GRID_SERIALIZABLE_CLASS_MEMBERS(ElectrifyPar,
 | 
			
		||||
                                    std::string, gauge,
 | 
			
		||||
				    std::string, photon,
 | 
			
		||||
				    std::string, emField,
 | 
			
		||||
				    double, e,
 | 
			
		||||
				    double, charge);
 | 
			
		||||
};
 | 
			
		||||
@@ -102,7 +102,7 @@ TElectrify<GImpl>::TElectrify(const std::string name)
 | 
			
		||||
template <typename GImpl>
 | 
			
		||||
std::vector<std::string> TElectrify<GImpl>::getInput(void)
 | 
			
		||||
{
 | 
			
		||||
    std::vector<std::string> in = {par().gauge, par().photon};	
 | 
			
		||||
    std::vector<std::string> in = {par().gauge, par().emField};
 | 
			
		||||
 | 
			
		||||
    return in;
 | 
			
		||||
}
 | 
			
		||||
@@ -128,11 +128,11 @@ template <typename GImpl>
 | 
			
		||||
void TElectrify<GImpl>::execute(void)
 | 
			
		||||
{
 | 
			
		||||
    LOG(Message) << "Electrify the gauge field " << par().gauge << " using the photon field " 
 | 
			
		||||
                  << par().photon << " with charge e*q= " << par().e << "*" << par().charge << std::endl;
 | 
			
		||||
                  << par().emField << " with charge e*q= " << par().e << "*" << par().charge << std::endl;
 | 
			
		||||
    
 | 
			
		||||
    auto &Ue = envGet(GaugeField, getName());
 | 
			
		||||
    auto &U = envGet(GaugeField, par().gauge);
 | 
			
		||||
    auto &A = envGet(EmField,  par().photon);
 | 
			
		||||
    auto &A = envGet(EmField,  par().emField);
 | 
			
		||||
    envGetTmp(LatticeComplex, eiAmu);
 | 
			
		||||
 | 
			
		||||
    Complex i(0.0,1.0);
 | 
			
		||||
 
 | 
			
		||||
@@ -48,8 +48,8 @@ BEGIN_MODULE_NAMESPACE(MSolver)
 | 
			
		||||
*
 | 
			
		||||
*  with
 | 
			
		||||
*
 | 
			
		||||
*  - v: A2A vector v_i(x)
 | 
			
		||||
*  - photon: A_mu(x): electromagnetic photon field
 | 
			
		||||
*  - vector: A2A vector v_i(x)
 | 
			
		||||
*  - emField: A_mu(x): electromagnetic photon field
 | 
			
		||||
*  - solver: the solver for calculating the sequential propagator
 | 
			
		||||
*
 | 
			
		||||
*****************************************************************************/
 | 
			
		||||
@@ -59,8 +59,8 @@ class A2AAslashVectorPar: Serializable
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
  GRID_SERIALIZABLE_CLASS_MEMBERS(A2AAslashVectorPar,
 | 
			
		||||
                                  std::string, v,
 | 
			
		||||
                                  std::string, photon,
 | 
			
		||||
                                  std::string, vector,
 | 
			
		||||
                                  std::string, emField,
 | 
			
		||||
                                  std::string, solver);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -104,7 +104,7 @@ TA2AAslashVector<FImpl>::TA2AAslashVector(const std::string name)
 | 
			
		||||
template <typename FImpl>
 | 
			
		||||
std::vector<std::string> TA2AAslashVector<FImpl>::getInput(void)
 | 
			
		||||
{
 | 
			
		||||
    std::vector<std::string> in = {par().v, par().photon, par().solver};
 | 
			
		||||
    std::vector<std::string> in = {par().vector, par().emField, par().solver};
 | 
			
		||||
 | 
			
		||||
    return in;
 | 
			
		||||
}
 | 
			
		||||
@@ -122,7 +122,7 @@ template <typename FImpl>
 | 
			
		||||
void TA2AAslashVector<FImpl>::setup(void)
 | 
			
		||||
{
 | 
			
		||||
    Ls_  = env().getObjectLs(par().solver);
 | 
			
		||||
    auto &vvector = envGet(std::vector<FermionField>, par().v);
 | 
			
		||||
    auto &vvector = envGet(std::vector<FermionField>, par().vector);
 | 
			
		||||
    unsigned int Nmodes = vvector.size();
 | 
			
		||||
    envCreate(std::vector<FermionField>, getName(), 1, 
 | 
			
		||||
              Nmodes, envGetGrid(FermionField));
 | 
			
		||||
@@ -137,8 +137,8 @@ template <typename FImpl>
 | 
			
		||||
void TA2AAslashVector<FImpl>::execute(void)
 | 
			
		||||
{
 | 
			
		||||
    auto &solver = envGet(Solver, par().solver);
 | 
			
		||||
    auto &stoch_photon = envGet(EmField,  par().photon);
 | 
			
		||||
    auto &vvector = envGet(std::vector<FermionField>, par().v);
 | 
			
		||||
    auto &stoch_photon = envGet(EmField,  par().emField);
 | 
			
		||||
    auto &vvector = envGet(std::vector<FermionField>, par().vector);
 | 
			
		||||
    auto &Aslashv = envGet(std::vector<FermionField>, getName());
 | 
			
		||||
    unsigned int Nmodes = vvector.size();
 | 
			
		||||
    auto &mat = solver.getFMat();
 | 
			
		||||
@@ -151,8 +151,8 @@ void TA2AAslashVector<FImpl>::execute(void)
 | 
			
		||||
 | 
			
		||||
    startTimer("Seq Aslash");
 | 
			
		||||
 | 
			
		||||
    LOG(Message) << "Calculate Sequential propagator on Aslash * v with the A2A vector " << par().v
 | 
			
		||||
                  << " and the photon field " << par().photon << std::endl;
 | 
			
		||||
    LOG(Message) << "Calculate Sequential propagator on Aslash * v with the A2A vector " << par().vector
 | 
			
		||||
                  << " and the photon field " << par().emField << std::endl;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    for(unsigned int i=0; i<Nmodes; i++)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user