source:
CIVL/mods/dev.civl.com/examples/mpi/routines/mpiSysStatusBad2.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 202 bytes | |
| Line | |
|---|---|
| 1 | #include <mpi.h> |
| 2 | |
| 3 | #ifdef _CIVL |
| 4 | $input int _mpi_nprocs = 2; |
| 5 | #endif |
| 6 | |
| 7 | int 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.
