Commit 5142e45d authored by Sergey Litvinov's avatar Sergey Litvinov
Browse files

minor

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