| 92 |
|
} |
| 93 |
|
|
| 94 |
|
#ifdef IS_MPI |
| 95 |
< |
if ( painCave.isEventLoop ) { |
| 96 |
< |
sprintf( nodeMsg, " (reported by MPI node %d)", worldRank); |
| 97 |
< |
strncat(errorMsg, nodeMsg, strlen(nodeMsg)); |
| 98 |
< |
} |
| 95 |
> |
if (worldRank == 0) { |
| 96 |
> |
if ( painCave.isEventLoop ) { |
| 97 |
> |
sprintf( nodeMsg, " (reported by MPI node %d)", worldRank); |
| 98 |
> |
strncat(errorMsg, nodeMsg, strlen(nodeMsg)); |
| 99 |
> |
} |
| 100 |
|
#endif |
| 101 |
< |
|
| 102 |
< |
strcat(errorMsg, ":\n\t"); |
| 103 |
< |
|
| 104 |
< |
strncat(errorMsg, painCave.errMsg, strlen(painCave.errMsg)); |
| 105 |
< |
|
| 106 |
< |
strcat(errorMsg, "\n"); |
| 107 |
< |
fprintf(stderr, errorMsg); |
| 108 |
< |
|
| 101 |
> |
|
| 102 |
> |
strcat(errorMsg, ":\n\t"); |
| 103 |
> |
|
| 104 |
> |
strncat(errorMsg, painCave.errMsg, strlen(painCave.errMsg)); |
| 105 |
> |
|
| 106 |
> |
strcat(errorMsg, "\n"); |
| 107 |
> |
fprintf(stderr, errorMsg); |
| 108 |
> |
|
| 109 |
|
#ifdef IS_MPI |
| 110 |
< |
if (painCave.isEventLoop) |
| 111 |
< |
return 1; |
| 110 |
> |
if (painCave.isEventLoop) |
| 111 |
> |
return 1; |
| 112 |
> |
} |
| 113 |
|
#endif |
| 114 |
|
|
| 115 |
|
if (painCave.isFatal) { |