source: CIVL/examples/mpi/routines/mpiSysStatusBad2.c@ fffb3b88

1.23 2.0 main test-branch
Last change on this file since fffb3b88 was 024a9eb, checked in by Ziqing Luo <ziqing@…>, 11 years ago

change _NPROCS to _mpi_nprocs

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2537 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 202 bytes
Line 
1#include <mpi.h>
2
3#ifdef _CIVL
4$input int _mpi_nprocs = 2;
5#endif
6
7int main(int argc, char * argv[]) {
8 int rank;
9
10 MPI_Init(&argc, &argv);
11 MPI_Finalize();
12 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
13}
Note: See TracBrowser for help on using the repository browser.