From 62febd2823e63d88cc9c2041120a0d240cd71c8e Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 31 Aug 2016 00:23:09 +0100 Subject: [PATCH] Wilson prop test --- tests/core/Test_fft.cc | 86 +++++++++++++++++++++++++++++++----------- 1 file changed, 64 insertions(+), 22 deletions(-) diff --git a/tests/core/Test_fft.cc b/tests/core/Test_fft.cc index 2fdaeed2..c076695d 100644 --- a/tests/core/Test_fft.cc +++ b/tests/core/Test_fft.cc @@ -46,16 +46,19 @@ int main (int argc, char ** argv) for(int d=0;d p({1,2,3,2}); @@ -72,31 +75,41 @@ int main (int argc, char ** argv) } C = exp(C*ci); - + Csav = C; S=zero; S = S+C; - FFT theFFT(&Fine); + FFT theFFT(&GRID); + + theFFT.FFT_dim(Ctilde,C,0,FFT::forward); C=Ctilde; + theFFT.FFT_dim(Ctilde,C,1,FFT::forward); C=Ctilde; std::cout << theFFT.MFlops()<<" Mflops "< seeds({1,2,3,4}); + GridParallelRNG pRNG(&GRID); + 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); + + Dw.M(src,tmp); + + std::cout << " src = " <