Commit 3feca48f authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

fixups for revoke_shrink test



Add the MPICH copyright header and remove C99 variable declaration
in for loop.
Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
parent 8bdfaf74
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2014 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
......@@ -19,7 +26,7 @@ void error_handler(MPI_Comm *communicator, int *error_code, ...) {
}
int main(int argc, char *argv[]) {
int rank, size;
int rank, size, i;
int sum = 0, val = 1;
int errs = 0;
MPI_Errhandler errhandler;
......@@ -38,7 +45,7 @@ int main(int argc, char *argv[]) {
MPI_Comm_create_errhandler(&error_handler, &errhandler);
MPI_Comm_set_errhandler(comm_all, errhandler);
for (int i = 0; i < 10; ++i) {
for (i = 0; i < 10; ++i) {
MPI_Comm_size(comm_all, &size);
sum = 0;
if (i == 5 && rank == 1) {
......
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