4 main(
int nargs,
char **args)
6 MPI_Datatype Dtype, Dt;
9 MPI_Init(&nargs, &args);
10 printf(
"If this routine does not complete, you should set SYSERRORS = -DZeroByteTypeBug.\n");
14 ierr = MPI_Type_indexed(1, &i, &j, MPI_INT, &Dtype);
15 if (ierr == MPI_SUCCESS)
17 MPI_Type_commit(&Dtype);
18 ierr = MPI_Type_vector(0, 1, 1, MPI_INT, &Dt);
19 if (ierr != MPI_SUCCESS)
20 printf(
"MPI_Type_vector returned %d, set SYSERRORS = -DZeroByteTypeBug\n", ierr);
21 else MPI_Type_commit(&Dt);
23 else printf(
"MPI_Type_commit returned %d, set SYSERRORS = -DZeroByteTypeBug\n", ierr);
24 if (ierr == MPI_SUCCESS) printf(
"Leave SYSERRORS blank for this system.\n");