Orbiter 2022
Combinatorial Objects
discreta_global.cpp
Go to the documentation of this file.
1// discreta_global.cpp
2//
3// Anton Betten
4// Nov 19, 2007
5
7#include "discreta.h"
8
9using namespace std;
10
11
12namespace orbiter {
13namespace layer2_discreta {
14
16{
17 int verbose_level = 0;
18 int f_v = (verbose_level >= 1);
19
20 if (f_v) {
21 cout << "discreta_global free_global_data" << endl;
22 }
23 //orthogonal_points_free_global_data();
25
26 Combi.free_global_data();
28 if (f_v) {
29 cout << "discreta_global free_global_data done" << endl;
30 }
31}
32
33void the_end(int t0)
34{
35 int verbose_level = 1;
36 int f_v = (verbose_level >= 1);
39
40 if (f_v) {
41 cout << "the_end" << endl;
42 }
43 if (f_v) {
44 cout << "***************** The End **********************" << endl;
45 //cout << "nb_calls_to_finite_field_init="
46 // << nb_calls_to_finite_field_init << endl;
47 }
49 if (f_v) {
50 cout << "the_end after free_global_data" << endl;
51 }
52 if (f_v) {
53 if (orbiter_kernel_system::Orbiter->f_memory_debug) {
54 //registry_dump();
55 //registry_dump_sorted();
56 }
57 }
58 Os.time_check(cout, t0);
59 cout << endl;
60
61
62 if (f_v) {
63 int mem_usage;
64 string fname;
65
66 mem_usage = Os.os_memory_usage();
67 fname.assign("memory_usage.csv");
68 Fio.int_matrix_write_csv(fname, &mem_usage, 1, 1);
69 }
70 if (f_v) {
71 cout << "the_end done" << endl;
72 }
73}
74
75void the_end_quietly(int t0)
76{
78
79 //cout << "discreta_global the_end_quietly: freeing global data" << endl;
81 Os.time_check(cout, t0);
82 cout << endl;
83}
84
85
86
87}}
88
void int_matrix_write_csv(std::string &fname, int *M, int m, int n)
Definition: file_io.cpp:1300
orbiter_kernel_system::orbiter_session * Orbiter
global Orbiter session
the orbiter library for the classification of combinatorial objects