From 343f3e829f0d8cd4cb5913a150db3039bec7437d Mon Sep 17 00:00:00 2001 From: azusayamaguchi Date: Tue, 8 Nov 2016 13:42:12 +0000 Subject: [PATCH] Fixes prerelease to make all tests --- Makefile.am | 2 +- tests/Makefile.am | 2 +- tests/core/Test_fft_gfix.cc | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index 049220e8..2606b88c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,7 @@ SUBDIRS = lib benchmarks tests .PHONY: tests tests: - make -C tests tests + $(MAKE) -C tests tests AM_CXXFLAGS += -I$(top_builddir)/include ACLOCAL_AMFLAGS = -I m4 diff --git a/tests/Makefile.am b/tests/Makefile.am index c98bc2d0..2e7c1f0a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -9,4 +9,4 @@ endif include Make.inc subtests: - for d in $(SUBDIRS); do make -C $${d} tests; done + for d in $(SUBDIRS); do $(MAKE) -C $${d} tests; done diff --git a/tests/core/Test_fft_gfix.cc b/tests/core/Test_fft_gfix.cc index 6a2868b0..d5779726 100644 --- a/tests/core/Test_fft_gfix.cc +++ b/tests/core/Test_fft_gfix.cc @@ -120,7 +120,7 @@ class FourierAcceleratedGaugeFixer : public Gimpl { LatticeComplex Fp(grid); LatticeComplex psq(grid); psq=zero; LatticeComplex pmu(grid); - LatticeComplex one(grid); one = ComplexD(1.0,0.0); + LatticeComplex one(grid); one = Complex(1.0,0.0); GaugeMat g(grid); GaugeMat dmuAmu_p(grid); @@ -261,25 +261,25 @@ int main (int argc, char ** argv) std::cout<< "* Testing we can gauge fix steep descent a RGT of Unit gauge *" <::avgPlaquette(Umu); + RealD plaq=WilsonLoops::avgPlaquette(Umu); std::cout << " Initial plaquette "<::SteepestDescentGaugeFix(Umu,alpha,10000,1.0e-10, 1.0e-10); + FourierAcceleratedGaugeFixer::SteepestDescentGaugeFix(Umu,alpha,10000,1.0e-10, 1.0e-10); - plaq=WilsonLoops::avgPlaquette(Umu); + plaq=WilsonLoops::avgPlaquette(Umu); std::cout << " Final plaquette "<