Commit a504eda0 authored by Robert Ricci's avatar Robert Ricci

Add '***' flags before more error messages.

parent a6e608d1
......@@ -358,13 +358,13 @@ void anneal(bool scoring_selftest, double scale_neighborhood,
for (name_name_map::iterator fixed_it=fixed_nodes.begin();
fixed_it!=fixed_nodes.end();++fixed_it) {
if (vname2vertex.find((*fixed_it).first) == vname2vertex.end()) {
cout << "Fixed node: " << (*fixed_it).first <<
cout << "*** Fixed node: " << (*fixed_it).first <<
" does not exist." << endl;
exit(EXIT_UNRETRYABLE);
}
vvertex vv = vname2vertex[(*fixed_it).first];
if (pname2vertex.find((*fixed_it).second) == pname2vertex.end()) {
cout << "Fixed node: " << (*fixed_it).second <<
cout << "*** Fixed node: " << (*fixed_it).second <<
" not available." << endl;
exit(EXIT_UNRETRYABLE);
}
......@@ -391,7 +391,7 @@ void anneal(bool scoring_selftest, double scale_neighborhood,
}
}
if (vn->type.empty()) {
cout << "Unable to find a type for fixed, vtyped, node " << vn->name
cout << "*** Unable to find a type for fixed, vtyped, node " << vn->name
<< endl;
exit(EXIT_FATAL);
} else {
......@@ -400,7 +400,7 @@ void anneal(bool scoring_selftest, double scale_neighborhood,
}
}
if (add_node(vv,pv,false,true) == 1) {
cout << "Fixed node: Could not map " << vn->name <<
cout << "*** Fixed node: Could not map " << vn->name <<
" to " << pn->name << endl;
exit(EXIT_UNRETRYABLE);
}
......
......@@ -146,7 +146,7 @@ void read_physical_topology(char *filename)
ifstream ptopfile;
ptopfile.open(filename);
if (!ptopfile.is_open()) {
cout << "Unable to open ptop file " << filename << endl;
cout << "*** Unable to open ptop file " << filename << endl;
exit(EXIT_FATAL);
}
cout << "Physical Graph: " << parse_ptop(PG,SG,ptopfile) << endl;
......@@ -255,7 +255,7 @@ void read_virtual_topology(char *filename)
ifstream topfile;
topfile.open(filename);
if (!topfile.is_open()) {
cout << "Unable to open top file " << filename << endl;
cout << "*** Unable to open top file " << filename << endl;
exit(EXIT_FATAL);
}
cout << "Virtual Graph: " << parse_top(VG,topfile) << endl;
......@@ -401,7 +401,7 @@ int type_precheck() {
cout << "Type precheck passed." << endl;
return 1;
} else {
cout << "Type precheck failed!" << endl;
cout << "*** Type precheck failed!" << endl;
return 0;
}
}
......@@ -623,7 +623,7 @@ nosuchtype:
cout << "Node mapping precheck succeeded" << endl;
return 1;
} else {
cout << "Node mapping precheck failed!" << endl;
cout << "*** Node mapping precheck failed!" << endl;
return 0;
}
......@@ -636,7 +636,7 @@ nosuchtype:
// Signal handler - add a convneint way to kill assign and make it return an
// unretryable error
void exit_unretryable(int signal) {
cout << "Killed with signal " << signal << " - exiting!" << endl;
cout << "*** Killed with signal " << signal << " - exiting!" << endl;
_exit(EXIT_UNRETRYABLE);
}
......
......@@ -641,7 +641,7 @@ void score_link_info(vedge ve, tb_pnode *src_pnode, tb_pnode *dst_pnode, tb_vnod
break;
#endif
case tb_link_info::LINK_UNMAPPED:
cout << "Internal error: Should not be here either." << endl;
cout << "*** Internal error: Should not be here either." << endl;
exit(EXIT_FATAL);
break;
}
......@@ -1088,7 +1088,7 @@ int add_node(vvertex vv,pvertex pv, bool deterministic, bool is_fixed)
choice -= LINK_RESOLVE_INTERSWITCH; break;
case tb_link_info::LINK_UNMAPPED:
case tb_link_info::LINK_TRIVIAL:
cerr << "Internal error: Should not be here." << endl;
cerr << "*** Internal error: Should not be here." << endl;
exit(EXIT_FATAL);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment