forked from InteractiveComputerGraphics/TreeNSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (26 loc) · 976 Bytes
/
Copy pathmain.cpp
File metadata and controls
32 lines (26 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "tests.h"
void tests(int n_points, bool crash_at_first_discrepancy)
{
std::cout << "\n\nTests with " << n_points << " particles." << std::endl;
std::cout << "======================================" << std::endl;
one_set_fixed_radius(n_points, crash_at_first_discrepancy);
two_dynamic_sets_variable_radius(n_points, crash_at_first_discrepancy);
mixed_float_double_point_sets(n_points, crash_at_first_discrepancy);
resize_variable_radius(n_points, crash_at_first_discrepancy);
}
int main()
{
bool crash_at_first_discrepancy = true;
// Tests
tests(/* n_particles = */ 1, crash_at_first_discrepancy);
tests(/* n_particles = */ 100, crash_at_first_discrepancy);
tests(/* n_particles = */ 10000, crash_at_first_discrepancy);
// Benchmark
const int n_benchmark_points = 9000;
benchmark_one_dynamic_set(n_benchmark_points);
// Heavier stress tests (disabled by default)
if (false) {
dynamic_emitter_stress_test();
combinatorial_stress_test();
}
}