source:
CIVL/examples/mpi/routines/mpiSysStatusBad2.c
| Last change on this file was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 202 bytes | |
| Rev | Line | |
|---|---|---|
| [a96092d] | 1 | #include <mpi.h> |
| 2 | ||
| 3 | #ifdef _CIVL | |
| [024a9eb] | 4 | $input int _mpi_nprocs = 2; |
| [a96092d] | 5 | #endif |
| 6 | ||
| 7 | int main(int argc, char * argv[]) { | |
| 8 | int rank; | |
| 9 | ||
| [e3151da] | 10 | MPI_Init(&argc, &argv); |
| [a96092d] | 11 | MPI_Finalize(); |
| [e3151da] | 12 | MPI_Comm_rank(MPI_COMM_WORLD, &rank); |
| [a96092d] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
