Bridge++  Version 1.6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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: aoyama $
8 
9  @date $LastChangedDate: 2013-04-08 18:00:27 #$
10 
11  @version $LastChangedRevision: 2143 $
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 #ifdef USE_TEST_EIGENSOLVER
30 #endif
31 
32 
33 #ifdef USE_TEST_FFT
34 #ifdef USE_FFTWLIB
35  Test_FFT::fft();
36 #endif
37 #endif
38 
39 
40 #ifdef USE_TEST_GAUGE
42 
45 
47 #endif
48 
49 
50 #ifdef USE_TEST_GRADIENTFLOW
51 #if 0
57 #endif
58 
64 #endif
65 
66 
67 #ifdef USE_TEST_HMC
68  // Test_HMC_Clover::update_Nf2();
74 
77 
80 
83 
86 #endif
87 
88 
89 #ifdef USE_TEST_HOTSTART
93 #endif
94 
95 
96 #ifdef USE_TEST_IO
98 
100 #ifdef USE_MPI
103 #endif
106 
107 #ifdef USE_LIMELIB
109 #ifdef USE_MPI
111 #endif
112 #endif
113 #endif
114 
115 
116 #ifdef USE_TEST_MULT
120  //- NB. Fopr_Clover_SF is implemented only in Chiral rep.
121  // Test_Mult::mult_Clover_SF();
122  //- NB. test_Mult_Wilson is implemented separately for beginners
123  // Test_Mult::mult_Wilson();
126  //- NB. Fopr_Wilson_SF is implemented only in Chiral rep.
127  // Test_Mult::mult_Wilson_SF();
128 
130 
133 #endif
134 
135 
136 #ifdef USE_TEST_POLYAKOVLOOP
138 #endif
139 
140 
141 #ifdef USE_TEST_QUARKNUMSUSCEPT
143 #endif
144 
145 
146 #ifdef USE_TEST_RANDOMNUMBERS
150 
154 
155 #ifdef USE_SFMTLIB
156  Test_RandomNumbers::rand_field_SFMT_Gaussian();
157  Test_RandomNumbers::rand_field_SFMT_U1();
158  Test_RandomNumbers::rand_field_SFMT_Z2();
159 #endif
160 
164 
167 
168 #ifdef USE_SFMTLIB
171 #endif
172 #endif
173 
174 
175 #ifdef USE_TEST_RATIONAL
179 #endif
180 
181 
182 #ifdef USE_TEST_SF_FAFP
183 #if defined(USE_OPENMP)
184  // multithreading yet unsupported.
185 #else
187 #endif
188 #endif
189 
190 
191 #ifdef USE_TEST_SOLVER
199 
201 #endif
202 
203 
204 #ifdef USE_TEST_SPECTRUM
207  //- NB. test_Spectrum_Wilson is implemented separately for beginners
208  // Test_Spectrum::hadron_2ptFunction_Wilson();
212 
214  //- NB. test_Spectrum_Wilson is implemented separately for beginners
215  // Test_Spectrum::hadron_2ptFunction_eo_withFileIO_Wilson();
216 
219  //- NB. test_Spectrum_Wilson is implemented separately for beginners
220  // Test_Spectrum::hadron_2ptFunction_withFileIO_Wilson();
222 
224 
226  //- NB. test_Spectrum_Wilson is implemented separately for beginners
227  // Test_Spectrum::hadron_2ptFunction_eo_Wilson();
228 
230 
231 #ifdef USE_MPI
232  // these tests run only in single-node environment.
233 #else
235  //- NB. CRS tests for domainwall and overlap_5d are skipped, because they are time-consuming.
236  // Test_Spectrum_CRSMatrix::domainwall();
237  // Test_Spectrum_CRSMatrix::overlap_5d();
238 #endif
239 #endif
240 
241 
242 #ifdef USE_TEST_TOPOLOGICALCHARGE
244 #endif
245 
246 
247 #ifdef USE_TEST_WILSONLOOP
249 #endif
250 
251 
252 //- #endif of #if defined(USE_GROUP_SU2)
253 #endif
254 
255  return EXIT_SUCCESS;
256 }
int shift(void)
int mult_Wilson_Isochemical()
Definition: test_Mult.cpp:92
int run_test()
Definition: run_test.cpp:19
int mult_Clover_eo()
int mult_CloverGeneral()
Definition: test_Mult.cpp:60
int mult_WilsonGeneral()
Definition: test_Mult.cpp:86
int mult_Clover_Isochemical()
Definition: test_Mult.cpp:66
int test_io_data_text(void)
int mult_Wilson_eo()
int mult_Clover()
Definition: test_Mult.cpp:54