projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics in the error messages.
[mtp.git]
/
mtp_graph.cc
diff --git
a/mtp_graph.cc
b/mtp_graph.cc
index
4a73a43
..
9bce055
100644
(file)
--- a/
mtp_graph.cc
+++ b/
mtp_graph.cc
@@
-227,7
+227,7
@@
void MTPGraph::force_positivized_lengths() {
}
}
#ifdef VERBOSE
}
}
#ifdef VERBOSE
- cerr <<
"
residual_error " << residual_error << " max_error " << residual_error << endl;
+ cerr <<
__FILE__ << ":
residual_error " << residual_error << " max_error " << residual_error << endl;
#endif
}
#endif
}
@@
-417,7
+417,7
@@
void MTPGraph::find_best_paths(scalar_t *lengths) {
// If that length is negative
if(total_length < 0.0) {
#ifdef VERBOSE
// If that length is negative
if(total_length < 0.0) {
#ifdef VERBOSE
- cerr <<
"
Found a path of length " << total_length << endl;
+ cerr <<
__FILE__ << ":
Found a path of length " << total_length << endl;
#endif
// Invert all the edges along the best path
v = _sink;
#endif
// Invert all the edges along the best path
v = _sink;
@@
-464,12
+464,12
@@
int MTPGraph::retrieve_one_path(Edge *e, Path *path) {
#ifdef DEBUG
if(nb_occupied_next == 0) {
#ifdef DEBUG
if(nb_occupied_next == 0) {
- cerr <<
"
retrieve_one_path: Non-sink end point." << endl;
+ cerr <<
__FILE__ << ":
retrieve_one_path: Non-sink end point." << endl;
abort();
}
else if(nb_occupied_next > 1) {
abort();
}
else if(nb_occupied_next > 1) {
- cerr <<
"
retrieve_one_path: Non node-disjoint paths." << endl;
+ cerr <<
__FILE__ << ":
retrieve_one_path: Non node-disjoint paths." << endl;
abort();
}
#endif
abort();
}
#endif