7 if (
sizeof(
int) !=
sizeof(MPI_Comm)) OK=0;
8 else if ((MPI_Comm) F77World != MPI_COMM_WORLD) OK=0;
11 MPI_Comm_rank(MPI_COMM_WORLD, &Iam);
12 if (Iam > 1) OK = ((MPI_Comm) f77comm == MPI_COMM_NULL);
15 i = MPI_Comm_size((MPI_Comm) f77comm, &Np);
16 if (i != MPI_SUCCESS) OK = 0;
17 else if (Np != 2) OK = 0;
20 MPI_Allreduce(&OK, &i, 1, MPI_INT, MPI_MIN, MPI_COMM_WORLD);