Bridge++  Ver.2.1.3
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: 2695 $
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 #if defined(USE_GROUP_SU2)
24  // Nc=2 is not available.
25 #else
26 
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
68 
74 
77 
81 
85 
86  //Test_HMC_Overlap::leapfrog_Nf2();
87 
90 
93 
95 
99 
100 #endif
101 
102 #ifdef USE_TEST_HOTSTART
106 #endif
107 
108 
109 #ifdef USE_TEST_IO
111 
113 #ifdef USE_MPI
116 #endif
119 
120 #ifdef USE_LIMELIB
122 #ifdef USE_MPI
124 #endif
125 #endif
126 #endif
127 
128 #ifdef USE_TEST_MULT
133  //- NB. test_Mult_Wilson is implemented separately for beginners
134  // Test_Mult::mult_Wilson();
137 
139 
141 
143 
146 #endif
147 
148 
149 #ifdef USE_TEST_POLYAKOVLOOP
151 #endif
152 
153 
154 #ifdef USE_TEST_QUARKNUMSUSCEPT
156 #endif
157 
158 
159 #ifdef USE_TEST_RANDOMNUMBERS
163 
167 
168 #ifdef USE_SFMTLIB
169  Test_RandomNumbers::rand_field_SFMT_Gaussian();
170  Test_RandomNumbers::rand_field_SFMT_U1();
171  Test_RandomNumbers::rand_field_SFMT_Z2();
172 #endif
173 
177 
180 
181 #ifdef USE_SFMTLIB
184 #endif
185 #endif
186 
187 
188 #ifdef USE_TEST_RATIONAL
192 #endif
193 
194 
195 #ifdef USE_TEST_SF_FAFP
197 #endif
198 
199 
200 #ifdef USE_TEST_SOLVER
208 
210 #endif
211 
212 
213 #ifdef USE_TEST_SPECTRUM
214  // order of call is changed in ver.2.1.3
215 
216 #ifdef USE_MPI
217  // these tests run only in single-node environment.
218 #else
220  //- NB. CRS tests for domainwall and overlap_5d are skipped, because they are time-consuming.
221  // Test_Spectrum_CRSMatrix::domainwall();
222  // Test_Spectrum_CRSMatrix::overlap_5d();
223 #endif
224 
230 
231  Test_Spectrum::hadron_4ptFunction_Clover(); // added in ver.2.1.3
232 
235 
237 
239 
242  //- NB. 5d overlap solver is skipped because of failure on some platform.
243  //Test_Spectrum_Overlap::hadron_2ptFunction_5d_solver();
244 
247 
249 
250  //- NB. test_Spectrum_Wilson is implemented separately for beginners
251  // Test_Spectrum::hadron_2ptFunction_Wilson();
252  //- NB. test_Spectrum_Wilson is implemented separately for beginners
253  // Test_Spectrum::hadron_2ptFunction_eo_Wilson();
254  //- NB. test_Spectrum_Wilson is implemented separately for beginners
255  // Test_Spectrum::hadron_2ptFunction_withFileIO_Wilson();
256  //- NB. test_Spectrum_Wilson is implemented separately for beginners
257  // Test_Spectrum::hadron_2ptFunction_eo_withFileIO_Wilson();
258 
261 
264 
267 
268 #endif
269 
270 
271 #ifdef USE_TEST_TOPOLOGICALCHARGE
273 #endif
274 
275 
276 
277 #ifdef USE_TEST_WILSONLOOP
279 #endif
280 
281 //- #endif of #if defined(USE_GROUP_SU2)
282 #endif
283 
284  return EXIT_SUCCESS;
285 }
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:75
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_HMC_Staggered::update_Nf4_lex
int update_Nf4_lex(void)
Definition: test_HMC_Staggered_Nf4_lex.cpp:68
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:54
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:84
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_HMC_Clover_SF::RHMC_Nf2p1_HYP
int RHMC_Nf2p1_HYP(void)
Definition: test_HMC_Clover_SF_RHMC_Nf2p1_HYP.cpp:90
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_Spectrum::hadron_4ptFunction_Clover
int hadron_4ptFunction_Clover()
Definition: test_Spectrum_4ptFunction.cpp:79
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_HMC_Domainwall::update_Moebius_Nf2_PV
int update_Moebius_Nf2_PV(void)
Definition: test_HMC_Domainwall_Moebius_Nf2_PV.cpp:63
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:82
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