Bridge++  Ver. 2.0.2
run_test.cpp
Go to the documentation of this file.
1 /*
2  @file run_test.cpp
3 
4  @brief
5 
6  @author Tatsumi Aoyama (aoym)
7  $LastChangedBy: matufuru $
8 
9  @date $LastChangedDate: 2013-04-08 18:00:27 #$
10 
11  @version $LastChangedRevision: 2524 $
12 */
13 
14 //#include "main.h"
15 #include <cstdlib>
16 #include "testlist.h"
17 
18 //====================================================================
19 int run_test()
20 {
21  //- put your exec test here
22 
23 
24 #if defined(USE_GROUP_SU2)
25  // Nc=2 is not available.
26 #else
27 #ifdef USE_TEST_EIGENSOLVER
31 #endif
32 
33 
34 #ifdef USE_TEST_FFT
35 #ifdef USE_FFTWLIB
36  Test_FFT::fft();
37 #endif
38 #endif
39 
40 
41 #ifdef USE_TEST_GAUGE
43 
46 
48 #endif
49 
50 
51 #ifdef USE_TEST_GRADIENTFLOW
52 #if 0
58 #endif
59 
65 #endif
66 
67 #ifdef USE_TEST_HMC
73 
76 
79 
82 
85 
87 
89 
93 #endif
94 
95 #ifdef USE_TEST_HOTSTART
99 #endif
100 
101 
102 #ifdef USE_TEST_IO
104 
106 #ifdef USE_MPI
109 #endif
112 
113 #ifdef USE_LIMELIB
115 #ifdef USE_MPI
117 #endif
118 #endif
119 #endif
120 
121 #ifdef USE_TEST_MULT
126  //- NB. test_Mult_Wilson is implemented separately for beginners
127  // Test_Mult::mult_Wilson();
130 
134 
137 #endif
138 
139 
140 #ifdef USE_TEST_POLYAKOVLOOP
142 #endif
143 
144 
145 #ifdef USE_TEST_QUARKNUMSUSCEPT
147 #endif
148 
149 
150 #ifdef USE_TEST_RANDOMNUMBERS
154 
158 
159 #ifdef USE_SFMTLIB
160  Test_RandomNumbers::rand_field_SFMT_Gaussian();
161  Test_RandomNumbers::rand_field_SFMT_U1();
162  Test_RandomNumbers::rand_field_SFMT_Z2();
163 #endif
164 
168 
171 
172 #ifdef USE_SFMTLIB
175 #endif
176 #endif
177 
178 
179 #ifdef USE_TEST_RATIONAL
183 #endif
184 
185 
186 #ifdef USE_TEST_SF_FAFP
188 #endif
189 
190 
191 #ifdef USE_TEST_SOLVER
199 
201 #endif
202 
203 
204 #ifdef USE_TEST_SPECTRUM
208  //- NB. test_Spectrum_Wilson is implemented separately for beginners
209  // Test_Spectrum::hadron_2ptFunction_Wilson();
213 
215  //- NB. test_Spectrum_Wilson is implemented separately for beginners
216  // Test_Spectrum::hadron_2ptFunction_eo_withFileIO_Wilson();
217 
222  //- NB. test_Spectrum_Wilson is implemented separately for beginners
223  // Test_Spectrum::hadron_2ptFunction_withFileIO_Wilson();
225 
227 
229  //- NB. test_Spectrum_Wilson is implemented separately for beginners
230  // Test_Spectrum::hadron_2ptFunction_eo_Wilson();
231 
233 
236 
237  //- NB. 5d overlap solver is skipped because of failure on some platform.
238  //Test_Spectrum_Overlap::hadron_2ptFunction_5d_solver();
239 
242 
244 
246 
247 #ifdef USE_MPI
248  // these tests run only in single-node environment.
249 #else
251  //- NB. CRS tests for domainwall and overlap_5d are skipped, because they are time-consuming.
252  // Test_Spectrum_CRSMatrix::domainwall();
253  // Test_Spectrum_CRSMatrix::overlap_5d();
254 #endif
255 #endif
256 
257 
258 #ifdef USE_TEST_TOPOLOGICALCHARGE
260 #endif
261 
262 
263 #ifdef USE_TEST_WILSONLOOP
265 #endif
266 
267 
268 //- #endif of #if defined(USE_GROUP_SU2)
269 #endif
270 
271  return EXIT_SUCCESS;
272 }
Test_Solver_Wilson::solver_BiCGStab_DS_L_Cmplx
int solver_BiCGStab_DS_L_Cmplx()
Definition: test_Solver_Wilson.cpp:54
Test_HMC_Staggered::update_Nf4_eo
int update_Nf4_eo(void)
Definition: test_HMC_Staggered_Nf4_eo.cpp:68
Test_HMC_Clover_Isochemical::RHMC_Nf2p1
int RHMC_Nf2p1(void)
Definition: test_HMC_Clover_Isochemical_RHMC_Nf2p1.cpp:83
Test_HMC_Quenched::leapfrog_Nf0
int leapfrog_Nf0(void)
Definition: test_HMC_Quenched_Leapfrog.cpp:63
Test_PolyakovLoop::polyakovloop
int polyakovloop(void)
Definition: test_PolyakovLoop.cpp:59
Test_HMC_Clover_SF::update_Nf2
int update_Nf2(void)
Definition: test_HMC_Clover_SF_Nf2.cpp:88
Test_Spectrum::hadron_2ptFunction_WilsonGeneral
int hadron_2ptFunction_WilsonGeneral()
Definition: test_Spectrum_2ptFunction.cpp:117
Test_GradientFlow::run_test_RK1
int run_test_RK1()
Definition: test_GradientFlow_Nf0.cpp:60
Test_RandomNumbers::rand_field_MT19937_Gaussian
int rand_field_MT19937_Gaussian()
Definition: test_RandomNumbers_Field.cpp:43
Test_Mult::mult_Wilson_TwistedMass
int mult_Wilson_TwistedMass()
Definition: test_Mult.cpp:80
Test_Spectrum::hadron_2ptFunction_withFileIO_Wilson_TwistedMass
int hadron_2ptFunction_withFileIO_Wilson_TwistedMass()
Definition: test_Spectrum_2ptFunction_withFileIO.cpp:82
Test_HMC_Clover::run_test_HYP
int run_test_HYP()
Definition: test_HMC_Clover_Nf2.cpp:67
Test_GradientFlow_EnergyMomentumTensor_Gauge::run_test_RK_adaptive
int run_test_RK_adaptive()
Definition: test_GradientFlow_EnergyMomentumTensor_Gauge.cpp:77
Test_GradientFlow::run_test_RK2
int run_test_RK2()
Definition: test_GradientFlow_Nf0.cpp:63
Test_IO_GaugeConfig::test_io_gconf_ILDG_parallel
int test_io_gconf_ILDG_parallel()
Definition: test_IO_GaugeConfig.cpp:80
Test_Solver_Wilson::solver_BiCGStab_Cmplx
int solver_BiCGStab_Cmplx()
Definition: test_Solver_Wilson.cpp:48
Test_RandomNumbers::rand_field_Mseries_Z2
int rand_field_Mseries_Z2()
Definition: test_RandomNumbers_Field.cpp:73
Test_IO_GaugeConfig::test_io_gconf_fortran
int test_io_gconf_fortran()
Definition: test_IO_GaugeConfig.cpp:68
Test_Spectrum::hadron_2ptFunction_withFileIO_Clover
int hadron_2ptFunction_withFileIO_Clover()
Definition: test_Spectrum_2ptFunction_withFileIO.cpp:70
Test_Spectrum_Staggered::hadron_2ptFunction_wallSource
int hadron_2ptFunction_wallSource(void)
Definition: test_Spectrum_Staggered_2ptFunction_WallSource.cpp:61
Test_Spectrum_Overlap::hadron_2ptFunction
int hadron_2ptFunction(void)
Definition: test_Spectrum_Overlap_2ptFunction.cpp:75
Test_RandomNumbers::rand_field_Mseries_U1
int rand_field_Mseries_U1()
Definition: test_RandomNumbers_Field.cpp:67
Test_HMC_Clover_Isochemical::update_Nf2
int update_Nf2(void)
Definition: test_HMC_Clover_Isochemical_Nf2.cpp:78
Test_Eigensolver_Clover_SF::solve_SF
int solve_SF(void)
Definition: test_Eigensolver_Clover_SF.cpp:65
Test_Gauge::plaquette_eo
int plaquette_eo()
Definition: test_Gauge_Plaquette.cpp:53
Test_Mult_Overlap::mult
int mult(void)
Definition: test_Mult_Overlap.cpp:68
Test_TopologicalCharge::topological_charge
int topological_charge(void)
Definition: test_TopologicalCharge.cpp:60
Test_GradientFlow::run_test_RK4
int run_test_RK4()
Definition: test_GradientFlow_Nf0.cpp:69
Test_GradientFlow_EnergyMomentumTensor_Gauge::run_test_RK4
int run_test_RK4()
Definition: test_GradientFlow_EnergyMomentumTensor_Gauge.cpp:74
Test_IO_GaugeConfig::test_io_gconf_binary
int test_io_gconf_binary()
Definition: test_IO_GaugeConfig.cpp:50
Test_Spectrum::hadron_2ptFunction_withFileIO_CloverGeneral
int hadron_2ptFunction_withFileIO_CloverGeneral()
Definition: test_Spectrum_2ptFunction_withFileIO.cpp:76
Test_RandomNumbers_MT19937::test_global
int test_global(void)
Definition: test_RandomNumbers_MT19937_Global.cpp:53
Test_Mult::mult_WilsonGeneral
int mult_WilsonGeneral()
Definition: test_Mult.cpp:93
Test_Spectrum::hadron_2ptFunction_eo_withFileIO_Clover
int hadron_2ptFunction_eo_withFileIO_Clover()
Definition: test_Spectrum_2ptFunction_eo_withFileIO.cpp:70
Test_Spectrum_Domainwall::hadron_2ptFunction
int hadron_2ptFunction(void)
Definition: test_Spectrum_Domainwall_2ptFunction.cpp:73
Test_IO_GaugeConfig::test_io_gconf_binary_parallel
int test_io_gconf_binary_parallel()
Definition: test_IO_GaugeConfig.cpp:56
Test_Spectrum::hadron_2ptFunction_eo_Clover
int hadron_2ptFunction_eo_Clover()
Definition: test_Spectrum_2ptFunction_eo.cpp:57
Test_Mult::mult_CloverGeneral
int mult_CloverGeneral()
Definition: test_Mult.cpp:61
Test_Spectrum::hadron_2ptFunction_Wilson_TwistedMass
int hadron_2ptFunction_Wilson_TwistedMass()
Definition: test_Spectrum_2ptFunction.cpp:95
Test_RandomNumbers_Mseries::test_global
int test_global(void)
Definition: test_RandomNumbers_Mseries_Global.cpp:55
Test_Solver_Wilson::solver_CGNR
int solver_CGNR()
Definition: test_Solver_Wilson.cpp:78
Test_HMC_Clover::run_test
int run_test()
Definition: test_HMC_Clover_Nf2.cpp:64
Test_Rational::approx
int approx(void)
Definition: test_Rational_Approx.cpp:54
Test_IO_GaugeConfig::test_io_gconf_text
int test_io_gconf_text()
Definition: test_IO_GaugeConfig.cpp:44
Test_HMC_Clover::RHMC_Nf2p1
int RHMC_Nf2p1(void)
Definition: test_HMC_Clover_RHMC_Nf2p1.cpp:80
Test_Eigensolver_Chebyshev::solve_chebyshev
int solve_chebyshev(void)
Definition: test_Eigensolver_Chebyshev.cpp:66
testlist.h
Test_Mult::mult_Clover_Chemical
int mult_Clover_Chemical()
Definition: test_Mult.cpp:67
Test_WilsonLoop::wilsonloop
int wilsonloop(void)
Definition: test_WilsonLoop.cpp:61
Test_IO_Data::test_io_data_text
int test_io_data_text(void)
Definition: test_IO_Data_Text.cpp:57
Test_Spectrum_NonRelativistic::heavy_heavy_2ptFunction
int heavy_heavy_2ptFunction()
Definition: test_Spectrum_Nonrelativistic_2ptFunction.cpp:60
Test_RandomNumbers_Mseries::gaussian
int gaussian(void)
Definition: test_RandomNumbers_Mseries_Gaussian.cpp:50
Test_HotStart::unitary
int unitary(void)
Definition: test_HotStart_Unitary.cpp:54
Test_RandomNumbers_Mseries::uniform_calc_pi
int uniform_calc_pi(void)
Definition: test_RandomNumbers_Mseries_Uniform.cpp:50
Test_Spectrum::hadron_2ptFunction_CloverGeneral
int hadron_2ptFunction_CloverGeneral()
Definition: test_Spectrum_2ptFunction.cpp:89
Test_Mult::mult_Wilson_Chemical
int mult_Wilson_Chemical()
Definition: test_Mult.cpp:99
Test_Spectrum_CRSMatrix::clover_lex
int clover_lex(void)
Definition: test_Spectrum_CRSMatrix_Clover_Lexical.cpp:83
Test_Gauge::energy_density
int energy_density(void)
Definition: test_Gauge_EnergyDensity.cpp:53
Test_Solver_Wilson::solver_BiCGStab_IDS_L_Cmplx
int solver_BiCGStab_IDS_L_Cmplx()
Definition: test_Solver_Wilson.cpp:60
Test_Solver_Wilson::solver_ShiftCG
int solver_ShiftCG(void)
Definition: test_Solver_Wilson_ShiftCG.cpp:61
Test_HMC_Wilson::update_Nf2_topology_fixing
int update_Nf2_topology_fixing(void)
Definition: test_HMC_Wilson_Nf2_TopologyFixing.cpp:76
Test_Spectrum::hadron_2ptFunction_Wilson_ShiftOrigin
int hadron_2ptFunction_Wilson_ShiftOrigin()
Definition: test_Spectrum_2ptFunction.cpp:105
Test_Spectrum::hadron_2ptFunction_withFileIO_WilsonGeneral
int hadron_2ptFunction_withFileIO_WilsonGeneral()
Definition: test_Spectrum_2ptFunction_withFileIO.cpp:94
Test_Spectrum_Overlap::check_sign
int check_sign(void)
Definition: test_Spectrum_Overlap_checkSignFunction.cpp:66
Test_IO_GaugeConfig::test_io_gconf_binary_distributed
int test_io_gconf_binary_distributed()
Definition: test_IO_GaugeConfig.cpp:62
Test_GradientFlow_EnergyMomentumTensor_Gauge::run_test_RK2
int run_test_RK2()
Definition: test_GradientFlow_EnergyMomentumTensor_Gauge.cpp:68
Test_Mult_Wilson::mult
int mult(void)
Definition: test_Mult_Wilson.cpp:61
Test_Spectrum::hadron_2ptFunction_Wilson_WallSource
int hadron_2ptFunction_Wilson_WallSource()
Definition: test_Spectrum_2ptFunction.cpp:111
Test_Solver_Wilson::solver_CGNE
int solver_CGNE()
Definition: test_Solver_Wilson.cpp:72
Test_Mult_Domainwall::mult
int mult(void)
Definition: test_Mult_Domainwall.cpp:61
Test_HMC_Quenched::update_Nf0
int update_Nf0(void)
Definition: test_HMC_Quenched.cpp:64
Test_Rational::smeared_rational
int smeared_rational(void)
Definition: test_Rational_Smeared.cpp:66
Test_Spectrum_Wilson::hadron_2ptFunction
int hadron_2ptFunction(void)
Definition: test_Spectrum_Wilson_2ptFunction.cpp:66
Test_HMC_Clover::RHMC_Nf2p1_eo
int RHMC_Nf2p1_eo(void)
Definition: test_HMC_Clover_RHMC_Nf2p1_eo.cpp:82
Test_HMC_Domainwall::update_Nf2_PV
int update_Nf2_PV(void)
Definition: test_HMC_Domainwall_Nf2_PV.cpp:75
Test_HMC_Domainwall::update_Nf2
int update_Nf2(void)
Definition: test_HMC_Domainwall_Nf2.cpp:75
Test_Eigensolver::solve
int solve(void)
Definition: test_Eigensolver.cpp:65
Test_Spectrum::hadron_2ptFunction_Clover
int hadron_2ptFunction_Clover()
Definition: test_Spectrum_2ptFunction.cpp:83
Test_HMC_Wilson::update_Nf2
int update_Nf2(void)
Definition: test_HMC_Wilson_Nf2.cpp:76
run_test
int run_test()
Definition: run_test.cpp:19
Test_RandomNumbers::rand_field_MT19937_U1
int rand_field_MT19937_U1()
Definition: test_RandomNumbers_Field.cpp:49
Test_RandomNumbers::rand_field_MT19937_Z2
int rand_field_MT19937_Z2()
Definition: test_RandomNumbers_Field.cpp:55
Test_GradientFlow::run_test_RK_adaptive
int run_test_RK_adaptive()
Definition: test_GradientFlow_Nf0.cpp:72
Test_RandomNumbers::rand_field_Mseries_Gaussian
int rand_field_Mseries_Gaussian()
Definition: test_RandomNumbers_Field.cpp:61
Test_GradientFlow::run_test_RK3
int run_test_RK3()
Definition: test_GradientFlow_Nf0.cpp:66
Test_HMC_Clover::update_Nf2_eo
int update_Nf2_eo(void)
Definition: test_HMC_Clover_Nf2_eo.cpp:81
Test_Rational::inverse
int inverse(void)
Definition: test_Rational_Inverse.cpp:63
Test_Mult_eo::mult_Clover_eo
int mult_Clover_eo()
Definition: test_Mult_eo.cpp:54
Test_HotStart::eigenvalue
int eigenvalue(void)
Definition: test_HotStart_Eigenvalue.cpp:55
Test_HotStart::determinant
int determinant(void)
Definition: test_HotStart_Determinant.cpp:55
Test_Solver_Wilson::solver_BiCGStab_L_Cmplx
int solver_BiCGStab_L_Cmplx()
Definition: test_Solver_Wilson.cpp:66
Test_Mult::mult_Clover
int mult_Clover()
Definition: test_Mult.cpp:55
Test_HMC_Wilson::leapfrog_Nf2
int leapfrog_Nf2(void)
Definition: test_HMC_Wilson_Leapfrog_Nf2.cpp:75
Test_Spectrum::hadron_2ptFunction_withFileIO_Clover_initial_guess
int hadron_2ptFunction_withFileIO_Clover_initial_guess()
Definition: test_Spectrum_2ptFunction_withFileIO_initial_guess.cpp:71
Test_Mult_eo::mult_Wilson_eo
int mult_Wilson_eo()
Definition: test_Mult_eo.cpp:60
Test_GradientFlow_EnergyMomentumTensor_Gauge::run_test_RK1
int run_test_RK1()
Definition: test_GradientFlow_EnergyMomentumTensor_Gauge.cpp:65
Test_Gauge::plaquette_lex
int plaquette_lex()
Definition: test_Gauge_Plaquette.cpp:47
Test_Spectrum_Staggered::hadron_2ptFunction_eo_wallSource
int hadron_2ptFunction_eo_wallSource(void)
Definition: test_Spectrum_Staggered_2ptFunction_eo_WallSource.cpp:72
Test_GradientFlow_EnergyMomentumTensor_Gauge::run_test_RK3
int run_test_RK3()
Definition: test_GradientFlow_EnergyMomentumTensor_Gauge.cpp:71
Test_Solver_Wilson::solver_GMRES_m_Cmplx
int solver_GMRES_m_Cmplx()
Definition: test_Solver_Wilson.cpp:84
Test_QuarkNumSuscept::quark_num_suscept
int quark_num_suscept(void)
Definition: test_QuarkNumberSusceptibility_Clover_Isochemical.cpp:68
Test_IO_GaugeConfig::test_io_gconf_ILDG
int test_io_gconf_ILDG()
Definition: test_IO_GaugeConfig.cpp:74
Test_HMC_Clover_SF::RHMC_Nf2p1
int RHMC_Nf2p1(void)
Definition: test_HMC_Clover_SF_RHMC_Nf2p1.cpp:90
Test_RandomNumbers_MT19937::uniform_calc_pi
int uniform_calc_pi(void)
Definition: test_RandomNumbers_MT19937_Uniform.cpp:50
Test_Gauge::shift
int shift(void)
Definition: test_Gauge_Shift.cpp:58
Test_SF_fAfP::boundary_meson_2ptFunction
int boundary_meson_2ptFunction(void)
Definition: test_SF_fAfP_Boundary_Meson_2ptFunction.cpp:73
Test_HMC_Wilson_TwistedMass::update_Nf2
int update_Nf2(void)
Definition: test_HMC_Wilson_TwistedMass_Nf2.cpp:70