mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Merge branch 'feature/hadrons' of github.com:fionnoh/Grid into feature/hadrons
This commit is contained in:
commit
355d4b58be
@ -43,9 +43,7 @@ class TMesonFieldGamma : public Module<MesonFieldPar>
|
|||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(Result,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(Result,
|
||||||
Gamma::Algebra, gamma,
|
Gamma::Algebra, gamma,
|
||||||
std::vector<std::vector<std::vector<ComplexD>>>, MesonField,
|
std::vector<std::vector<std::vector<ComplexD>>>, MesonField);
|
||||||
std::vector<std::vector<ComplexD>>, MesonFiield,
|
|
||||||
ComplexD, last);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -189,7 +187,6 @@ void TMesonFieldGamma<FImpl>::execute(void)
|
|||||||
{
|
{
|
||||||
result[i].gamma = gammaResultList[i];
|
result[i].gamma = gammaResultList[i];
|
||||||
result[i].MesonField.resize(N, std::vector<std::vector<ComplexD>>(N, std::vector<ComplexD>(nt)));
|
result[i].MesonField.resize(N, std::vector<std::vector<ComplexD>>(N, std::vector<ComplexD>(nt)));
|
||||||
result[i].MesonFiield.resize(N, std::vector<<ComplexD>(nt));
|
|
||||||
|
|
||||||
Gamma gamma(gammaResultList[i]);
|
Gamma gamma(gammaResultList[i]);
|
||||||
gammaList[i] = gamma;
|
gammaList[i] = gamma;
|
||||||
|
@ -62,6 +62,7 @@ inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &righ
|
|||||||
ComplexD tmp = Reduce(TensorRemove(vinner)) ;
|
ComplexD tmp = Reduce(TensorRemove(vinner)) ;
|
||||||
vstream(sumarray[thr*pad],tmp);
|
vstream(sumarray[thr*pad],tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
inner=0.0;
|
inner=0.0;
|
||||||
for(int i=0;i<grid->SumArraySize();i++){
|
for(int i=0;i<grid->SumArraySize();i++){
|
||||||
inner = inner+sumarray[i*pad];
|
inner = inner+sumarray[i*pad];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user