MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / the_message_string

Function the_message_string

Src/Base/AMReX_ParallelDescriptor.cpp:195–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193namespace
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

Callers 1

MPI_ErrorFunction · 0.85

Calls 1

ErrorStringFunction · 0.85

Tested by

no test coverage detected