X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=blobdiff_plain;f=mtp_graph.cc;h=9bce0558867730a96f66bcef6aabee26eb4b0c06;hp=4a73a439acb8cf35c0c509547a0a71163c11acc8;hb=d404d76f0edfa147653d360ec5f1aeb85d13ff88;hpb=fc369d56ff5774f00daecb744827f822472cf2ab diff --git a/mtp_graph.cc b/mtp_graph.cc index 4a73a43..9bce055 100644 --- a/mtp_graph.cc +++ b/mtp_graph.cc @@ -227,7 +227,7 @@ void MTPGraph::force_positivized_lengths() { } } #ifdef VERBOSE - cerr << "residual_error " << residual_error << " max_error " << residual_error << endl; + cerr << __FILE__ << ": residual_error " << residual_error << " max_error " << residual_error << endl; #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 - 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; @@ -464,12 +464,12 @@ int MTPGraph::retrieve_one_path(Edge *e, Path *path) { #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) { - cerr << "retrieve_one_path: Non node-disjoint paths." << endl; + cerr << __FILE__ << ": retrieve_one_path: Non node-disjoint paths." << endl; abort(); } #endif