Commit 3373d3c8 authored by Sergey Litvinov's avatar Sergey Litvinov
Browse files

undo Errhandler_set

parent 5142e45d
...@@ -13,15 +13,14 @@ namespace m { /* MPI */ ...@@ -13,15 +13,14 @@ namespace m { /* MPI */
enum {X, Y, Z, D}; enum {X, Y, Z, D};
void ini(int *argc, char ***argv) { void ini(int *argc, char ***argv) {
if (m::Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN) != MPI_SUCCESS) {
fprintf(stderr, ": m::Errhandler_set failed\n");
exit(2);
}
if (m::Init(argc, argv) != MPI_SUCCESS) { if (m::Init(argc, argv) != MPI_SUCCESS) {
fprintf(stderr, ": m::Init failed\n"); fprintf(stderr, ": m::Init failed\n");
exit(2); exit(2);
} }
if (m::Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN) != MPI_SUCCESS) {
fprintf(stderr, ": m::Errhandler_set failed\n");
exit(2);
}
} }
static void shift(int *argc, char ***argv) { static void shift(int *argc, char ***argv) {
......
Supports Markdown
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