Skip to content

Commit 61004f0

Browse files
committed
removed annotiny messages
1 parent 32cf5d0 commit 61004f0

6 files changed

Lines changed: 2 additions & 36 deletions

File tree

algorithms/partitioner/dfs_on_sbg.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ vector<map<unsigned, set<Set, setCompare>>> partitionate()
5050
sort_object.start();
5151
sort_object.iterate();
5252
vector<map<unsigned, set<Set, setCompare>>> partitions = sort_object.partitions();
53-
for (size_t i = 0; i < partitions.size(); i++) {
54-
const auto& part = partitions.at(i);
55-
for (const auto& [id, p] : part) {
56-
cout << id << ": ";
57-
for (const auto& s : p) {
58-
cout << s << " ";
59-
}
60-
cout << endl;
61-
}
62-
}
6353

6454
return partitions;
6555
}
@@ -78,7 +68,6 @@ void DFS::initialize_adjacents()
7868
// Fill adjacents
7969
for (auto it = _nodes.begin(); it != _nodes.end(); ++it) {
8070
const auto incoming_node = *it;
81-
std::cout << *it << std::endl;
8271

8372
auto incoming_node_set = SET_FACT.createSet(incoming_node);
8473

algorithms/partitioner/main.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,6 @@ SBG::LIB::WeightedSBGraph build_computational_sbg(const PartitionerParams& param
240240
{
241241
cout << "Building computational SB Graph" << endl;
242242
SBG::LIB::WeightedSBGraph sb_graph = get_sbg(*params.filename, *params.number_of_partitions);
243-
for (auto it1 = sb_graph.map1().begin(), it2 = sb_graph.map2().begin(); it1 != sb_graph.map1().end() and it2 != sb_graph.map2().end();
244-
++it1, ++it2) {
245-
auto n1 = (*it1).image();
246-
auto n2 = (*it2).image();
247-
cout << n1 << ", " << n2 << " from " << (*it1).dom() << " " << (*it1).dom().cardinal() << "\n";
248-
}
249-
cout << endl;
250243

251244
if (not params.filename->find("air_conditioners_cont") != std::string::npos) {
252245
return sb_graph;

algorithms/partitioner/partition_graph.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,12 @@ vector<PartitionMap> make_initial_partitions(SBG::LIB::WeightedSBGraph& graph, u
9494
}
9595

9696
vector<map<unsigned, set<Set, setCompare>>> partitions = partitionate();
97-
for (size_t i = 0; i < partitions.size(); i++) {
98-
const auto& part = partitions.at(i);
99-
for (const auto& [id, p] : part) {
100-
cout << id << ": ";
101-
for (const auto& s : p) {
102-
cout << s << " ";
103-
}
104-
cout << endl;
105-
}
106-
}
10797

10898
for (const auto& partition : partitions) {
10999
PartitionMap partition_set;
110100
for (const auto& [id, set] : partition) {
111101
Set one_partition_set = SET_FACT.createSet();
112102
Partition p;
113-
cout << id << " ";
114103
for (auto& s : set) {
115104
// Set intervals = SET_FACT.createSet();
116105
// if (not s.intervals().empty()) {
@@ -120,9 +109,7 @@ vector<PartitionMap> make_initial_partitions(SBG::LIB::WeightedSBGraph& graph, u
120109
// }
121110
// }
122111
p.emplace_back(s);
123-
cout << s << " ";
124112
}
125-
cout << endl;
126113
partition_set.push_back(p);
127114
}
128115

algorithms/partitioner/partition_graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace sbg_partitioner {
3434

35-
constexpr bool sanity_check_enabled = true;
35+
constexpr bool sanity_check_enabled = false;
3636

3737

3838
/// @brief Converts a Partition element into a Set.

algorithms/partitioner/partition_strategy.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ void PartitionStrategyGreedy::operator()(const Set& node_to_be_added)
8686
elements_can_take = min(pending_node_elements, elements_can_take);
8787
pending_node_elements -= elements_can_take;
8888
size_by_partition[i] = elements_can_take * node_weight;
89-
cout << i << ", " << size_by_partition[i] << endl;
9089
_current_size_by_partition[i] += size_by_partition[i];
9190
}
9291
}
@@ -104,7 +103,6 @@ void PartitionStrategyGreedy::operator()(const Set& node_to_be_added)
104103

105104
Set remaining_node = node_to_be_added;
106105
for (unsigned i = 0; i < _number_of_partitions; i++) {
107-
cout << i << ": " << size_by_partition[i] << endl;
108106
if (size_by_partition[i] == 0) {
109107
continue;
110108
}
@@ -113,7 +111,6 @@ void PartitionStrategyGreedy::operator()(const Set& node_to_be_added)
113111

114112
Set node_to_be_added = SET_FACT.createSet();
115113
tie(node_to_be_added, remaining_node) = cut_interval_by_dimension(remaining_node, _node_weight, size_by_partition[i]);
116-
cout << i << ", " << size_by_partition[i] << ", " << node_to_be_added << ", " << remaining_node << endl;
117114

118115
for_each(node_to_be_added.begin(), node_to_be_added.end(), [&p](const auto& set_piece) { p.insert(SET_FACT.createSet(set_piece)); });
119116
}

test/partitioner/external_tools/graph_partitioner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ static void write_node_by_partition(const sbg_partitioner::PartitionMap &partiti
109109
}
110110
}
111111
}
112-
std::cout << "parts ok" << std::endl;
113112

114113
for_each(partition_vector.begin(), partition_vector.end(), [&output_file](const auto val) { output_file << val << "\n"; });
114+
std::cout << "parts ok" << std::endl;
115115
}
116116

117117
std::tuple<Partition, std::chrono::duration<double>> GraphPartitioner::createPartition(const std::string &partition_method_name,

0 commit comments

Comments
 (0)