Commit a504eda0 authored by Robert Ricci's avatar Robert Ricci
Browse files

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

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