diff --git a/tests/core/Test_fft.cc b/tests/core/Test_fft.cc index c076695d..a20791fb 100644 --- a/tests/core/Test_fft.cc +++ b/tests/core/Test_fft.cc @@ -27,6 +27,7 @@ Author: Peter Boyle *************************************************************************************/ /* END LEGAL */ #include +#include using namespace Grid; using namespace Grid::QCD; @@ -127,27 +128,96 @@ int main (int argc, char ** argv) pRNG.SeedFixedIntegers(seeds); LatticeGaugeFieldD Umu(&GRID); - LatticeFermionD src(&GRID); gaussian(pRNG,src); - LatticeFermionD tmp(&GRID); - LatticeFermionD ref(&GRID); SU3::ColdConfiguration(pRNG,Umu); // Unit gauge - RealD mass=0.1; - WilsonFermionD Dw(Umu,GRID,RBGRID,mass); + { + LatticeFermionD src(&GRID); gaussian(pRNG,src); + LatticeFermionD tmp(&GRID); + LatticeFermionD ref(&GRID); + + RealD mass=0.1; + WilsonFermionD Dw(Umu,GRID,RBGRID,mass); + + Dw.M(src,tmp); - Dw.M(src,tmp); + std::cout << " src = " < HermOp(Ddwf); + ConjugateGradient CG(1.0e-4,1000); + CG(HermOp,src5,result5); + result5 = zero; + + ExtractSlice(tmp,result5,0,sdir); + result4 = (tmp+G5*tmp)*0.5; + + ExtractSlice(tmp,result5,Ls-1,sdir); + result4 = result4+(tmp-G5*tmp)*0.5; + + std::cout << "src "< QEDGimplTypesD; + typedef Photon QEDGaction; + QEDGaction Maxwell(QEDGaction::FEYNMAN_L); + QEDGaction::GaugeField Prop(&GRID);Prop=zero; + QEDGaction::GaugeField Source(&GRID);Source=zero; + + Maxwell.FreePropagator (Source,Prop); + std::cout << " MaxwellFree propagator\n"; + } Grid_finalize(); }