|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52337 - trunk/libs/graph_parallel/test
From: jewillco_at_[hidden]
Date: 2009-04-11 13:04:45
Author: jewillco
Date: 2009-04-11 13:04:44 EDT (Sat, 11 Apr 2009)
New Revision: 52337
URL: http://svn.boost.org/trac/boost/changeset/52337
Log:
Removed tabs
Text files modified:
trunk/libs/graph_parallel/test/distributed_betweenness_centrality_test.cpp | 38 +++++++++++++++++++-------------------
trunk/libs/graph_parallel/test/ssca.cpp | 10 +++++-----
2 files changed, 24 insertions(+), 24 deletions(-)
Modified: trunk/libs/graph_parallel/test/distributed_betweenness_centrality_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_betweenness_centrality_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_betweenness_centrality_test.cpp 2009-04-11 13:04:44 EDT (Sat, 11 Apr 2009)
@@ -196,14 +196,14 @@
std::vector<int> nonDistributedWeightedCentralityS(num_vertices(sg), 0);
seqCentralityMap nonDistributedWeightedCentrality(nonDistributedWeightedCentralityS.begin(),
- get(vertex_index, sg));
+ get(vertex_index, sg));
non_distributed_brandes_betweenness_centrality(pg, sg, nonDistributedCentrality);
non_distributed_brandes_betweenness_centrality(pg, sg,
- centrality_map(nonDistributedWeightedCentrality).
+ centrality_map(nonDistributedWeightedCentrality).
#ifdef CSR
- weight_map(get(&WeightedEdge::weight, sg)));
+ weight_map(get(&WeightedEdge::weight, sg)));
#else
weight_map(get(edge_weight, sg)));
#endif
@@ -246,17 +246,17 @@
for (tie(v, v_end) = vertices(g); v != v_end; ++v) {
if (get(centrality, *v) != seqCentralityS[(n/p) * get(owner, *v) + get(local, *v)]) {
- std::cerr << " " << id << ": Error - centrality of " << get(local, *v) << "@" << get(owner, *v)
- << " does not match the sequential result (" << get(centrality, *v) << " vs. "
- << seqCentralityS[(n/p) * get(owner, *v) + get(local, *v)] << ")\n";
- passed = false;
+ std::cerr << " " << id << ": Error - centrality of " << get(local, *v) << "@" << get(owner, *v)
+ << " does not match the sequential result (" << get(centrality, *v) << " vs. "
+ << seqCentralityS[(n/p) * get(owner, *v) + get(local, *v)] << ")\n";
+ passed = false;
}
if (get(weightedCentrality, *v) != seqWeightedCentralityS[(n/p) * get(owner, *v) + get(local, *v)]) {
- std::cerr << " " << id << ": Error - weighted centrality of " << get(local, *v) << "@" << get(owner, *v)
- << " does not match the sequential result (" << get(weightedCentrality, *v) << " vs. "
- << seqWeightedCentralityS[(n/p) * get(owner, *v) + get(local, *v)] << ")\n";
- passed = false;
+ std::cerr << " " << id << ": Error - weighted centrality of " << get(local, *v) << "@" << get(owner, *v)
+ << " does not match the sequential result (" << get(weightedCentrality, *v) << " vs. "
+ << seqWeightedCentralityS[(n/p) * get(owner, *v) + get(local, *v)] << ")\n";
+ passed = false;
}
}
}
@@ -267,17 +267,17 @@
for (tie(v, v_end) = vertices(sg); v != v_end; ++v) {
if (get(seqCentrality, *v) != get(nonDistributedCentrality, *v)) {
- std::cerr << " " << id << ": Error - non-distributed centrality of " << *v
- << " does not match the sequential result (" << get(nonDistributedCentrality, *v)
- << " vs. " << get(seqCentrality, *v) << ")\n";
- passed = false;
+ std::cerr << " " << id << ": Error - non-distributed centrality of " << *v
+ << " does not match the sequential result (" << get(nonDistributedCentrality, *v)
+ << " vs. " << get(seqCentrality, *v) << ")\n";
+ passed = false;
}
if (get(seqWeightedCentrality, *v) != get(nonDistributedWeightedCentrality, *v)) {
- std::cerr << " " << id << ": Error - non-distributed weighted centrality of " << *v
- << " does not match the sequential result (" << get(nonDistributedWeightedCentrality, *v)
- << " vs. " << get(seqCentrality, *v) << ")\n";
- passed = false;
+ std::cerr << " " << id << ": Error - non-distributed weighted centrality of " << *v
+ << " does not match the sequential result (" << get(nonDistributedWeightedCentrality, *v)
+ << " vs. " << get(seqCentrality, *v) << ")\n";
+ passed = false;
}
}
}
Modified: trunk/libs/graph_parallel/test/ssca.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/ssca.cpp (original)
+++ trunk/libs/graph_parallel/test/ssca.cpp 2009-04-11 13:04:44 EDT (Sat, 11 Apr 2009)
@@ -754,12 +754,12 @@
while (remaining_sources > 0) {
typename graph_traits<filteredSeqGraph>::vertex_descriptor v =
- vertex(rand_vertex(gen), fsg);
+ vertex(rand_vertex(gen), fsg);
if (out_degree(v, fsg) != 0
- && std::find(temp_sources.begin(), temp_sources.end(), v) == temp_sources.end()) {
- temp_sources.push_back(v);
- --remaining_sources;
+ && std::find(temp_sources.begin(), temp_sources.end(), v) == temp_sources.end()) {
+ temp_sources.push_back(v);
+ --remaining_sources;
}
}
@@ -769,7 +769,7 @@
start = get_time();
non_distributed_brandes_betweenness_centrality(pg, fsg, buffer(sources).
- centrality_map(nonDistributedApproxCentrality));
+ centrality_map(nonDistributedApproxCentrality));
extract_max_bc_vertices(pg, fsg, nonDistributedApproxCentrality, max_seq_bc_vec);
end = get_time();
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk