mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Fixed an MPI error.
This commit is contained in:
parent
117708f464
commit
07625e39c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user