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