Fixed an MPI error.

This commit is contained in:
Ward Fisher 2015-10-28 11:27:36 -06:00
parent 117708f464
commit 07625e39c2

View File

@ -25,6 +25,8 @@
int main(int argc, char** argv) {
int err, ncid, varid[2], dimid[2], rank, nprocs;
MPI_Comm comm=MPI_COMM_SELF;
MPI_Info info=MPI_INFO_NULL;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);