mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 13:15:55 +01:00
Fixes prerelease to make all tests
This commit is contained in:
parent
f85b35314d
commit
343f3e829f
@ -4,7 +4,7 @@ SUBDIRS = lib benchmarks tests
|
|||||||
.PHONY: tests
|
.PHONY: tests
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
make -C tests tests
|
$(MAKE) -C tests tests
|
||||||
|
|
||||||
AM_CXXFLAGS += -I$(top_builddir)/include
|
AM_CXXFLAGS += -I$(top_builddir)/include
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
@ -9,4 +9,4 @@ endif
|
|||||||
include Make.inc
|
include Make.inc
|
||||||
|
|
||||||
subtests:
|
subtests:
|
||||||
for d in $(SUBDIRS); do make -C $${d} tests; done
|
for d in $(SUBDIRS); do $(MAKE) -C $${d} tests; done
|
||||||
|
@ -120,7 +120,7 @@ class FourierAcceleratedGaugeFixer : public Gimpl {
|
|||||||
LatticeComplex Fp(grid);
|
LatticeComplex Fp(grid);
|
||||||
LatticeComplex psq(grid); psq=zero;
|
LatticeComplex psq(grid); psq=zero;
|
||||||
LatticeComplex pmu(grid);
|
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 g(grid);
|
||||||
GaugeMat dmuAmu_p(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 *" <<std::endl;
|
std::cout<< "* Testing we can gauge fix steep descent a RGT of Unit gauge *" <<std::endl;
|
||||||
std::cout<< "*****************************************************************" <<std::endl;
|
std::cout<< "*****************************************************************" <<std::endl;
|
||||||
|
|
||||||
LatticeGaugeFieldD Umu(&GRID);
|
LatticeGaugeField Umu(&GRID);
|
||||||
LatticeGaugeFieldD Uorg(&GRID);
|
LatticeGaugeField Uorg(&GRID);
|
||||||
LatticeColourMatrixD g(&GRID); // Gauge xform
|
LatticeColourMatrix g(&GRID); // Gauge xform
|
||||||
|
|
||||||
|
|
||||||
SU3::ColdConfiguration(pRNG,Umu); // Unit gauge
|
SU3::ColdConfiguration(pRNG,Umu); // Unit gauge
|
||||||
Uorg=Umu;
|
Uorg=Umu;
|
||||||
|
|
||||||
SU3::RandomGaugeTransform(pRNG,Umu,g); // Unit gauge
|
SU3::RandomGaugeTransform(pRNG,Umu,g); // Unit gauge
|
||||||
RealD plaq=WilsonLoops<PeriodicGimplD>::avgPlaquette(Umu);
|
RealD plaq=WilsonLoops<PeriodicGimplF>::avgPlaquette(Umu);
|
||||||
std::cout << " Initial plaquette "<<plaq << std::endl;
|
std::cout << " Initial plaquette "<<plaq << std::endl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RealD alpha=0.1;
|
RealD alpha=0.1;
|
||||||
FourierAcceleratedGaugeFixer<PeriodicGimplD>::SteepestDescentGaugeFix(Umu,alpha,10000,1.0e-10, 1.0e-10);
|
FourierAcceleratedGaugeFixer<PeriodicGimplF>::SteepestDescentGaugeFix(Umu,alpha,10000,1.0e-10, 1.0e-10);
|
||||||
|
|
||||||
|
|
||||||
plaq=WilsonLoops<PeriodicGimplD>::avgPlaquette(Umu);
|
plaq=WilsonLoops<PeriodicGimplF>::avgPlaquette(Umu);
|
||||||
std::cout << " Final plaquette "<<plaq << std::endl;
|
std::cout << " Final plaquette "<<plaq << std::endl;
|
||||||
|
|
||||||
Uorg = Uorg - Umu;
|
Uorg = Uorg - Umu;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user