| 193 | namespace |
| 194 | { |
| 195 | const char* |
| 196 | the_message_string (const char* file, |
| 197 | int line, |
| 198 | const char* call, |
| 199 | int status) |
| 200 | { |
| 201 | constexpr int N = 1024; |
| 202 | static char buf[N]; |
| 203 | if ( status ) |
| 204 | { |
| 205 | snprintf(buf, N, "AMReX MPI Error: File %s, line %d, %s: %s", |
| 206 | file, line, call, ParallelDescriptor::ErrorString(status)); |
| 207 | } |
| 208 | else |
| 209 | { |
| 210 | snprintf(buf, N, "AMReX MPI Error: File %s, line %d, %s", |
| 211 | file, line, call); |
| 212 | } |
| 213 | return buf; |
| 214 | } |
| 215 | |
| 216 | } |
| 217 |
no test coverage detected