OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
main.cpp
1#include <iostream>
2#include <thread>
3
4size_t debug_tot_call = 0;
5
6#define PRINT_STACKTRACE
7#define CHECKFOR_POSNAN
8#define CHECKFOR_POSINF
9#define CHECKFOR_PROPNAN
10#define CHECKFOR_PROPINF
11
12#define NO_WARNING
13#include "Graph/CartesianGraphFactory.hpp"
14
15void timeout_cycle()
16{
17 // 6 seconds
18 std::this_thread::sleep_for (std::chrono::seconds(900));
19
20 std::cout << "Time Out" << std::endl;
21 std::exit(1);
22}
23
24
25#define BOOST_DISABLE_ASSERTS
26
27
28#include "config.h"
29#undef VERSION
30
31#define BOOST_TEST_DYN_LINK
32#include <boost/test/unit_test.hpp>
33
34// initialization function:
35bool init_unit_test()
36{
37// std::thread to (timeout_cycle);
38// to.detach();
39 return true;
40}
41
42// entry point
43int main(int argc, char* argv[])
44{
45 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
46}
47
48#include "debug.hpp"
49#include "Grid/grid_dist_id.hpp"
50#include "Point_test.hpp"
51#include "Decomposition/CartDecomposition.hpp"
52#include "Graph/dist_map_graph.hpp"
53#include "memory/HeapMemory.hpp"
54#include "Space/Shape/Box.hpp"
55
56#include "unit_test_init_cleanup.hpp"
57#include "Graph/CartesianGraphFactory_unit_test.hpp"
58#include "Decomposition/ORB_unit_test.hpp"
59#include "Decomposition/Distribution/metis_util_unit_test.hpp"
60#include "Decomposition/dec_optimizer_unit_test.hpp"
61#include "Decomposition/Distribution/Distribution_unit_tests.hpp"
62#include "Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp"
63//#include "DLB/DLB_unit_test.hpp"
64#include "Graph/dist_map_graph_unit_test.hpp"
65#include "Graph/DistGraphFactory.hpp"
66#include "Vector/se_class3_vector_unit_tests.hpp"
67#include "Vector/tests/vector_dist_dlb_test.hpp"
68#include "Decomposition/Domain_NN_calculator_cart_unit_test.hpp"
69//#include "antoniol_test_isolation.hpp"