81 const char* pstatus = 0;
84 pstatus =
"succeeded";
91 static const std::string failed[4] = {
"Arithmetic error.",
92 "Failed to converge.",
93 "Failed because parallel.",
96 static const std::string succeeded[4] = {
"Normal completion.",
99 "Undefined success state."};
101 if (code > 0 && code < 10) {
103 pstring = failed[std::min(code-1,3) ];
105 pstring = succeeded[std::min(code-1,3) ];
107 }
else if (_string == 0 ) {
108 pstring =
"Unknown error.";
113 ostr <<
"TrkErrCode: " << pstatus <<
", code " << code
114 <<
". Status: " << pstring.c_str();