source:
CIVL/mods/dev.civl.com/examples/mpi/simple/goodInitFinalize.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 172 bytes | |
| Line | |
|---|---|
| 1 | #include<mpi.h> |
| 2 | |
| 3 | /* Only one process inits MPI. This is OK. */ |
| 4 | |
| 5 | void main() { |
| 6 | int argc; |
| 7 | char **argv; |
| 8 | |
| 9 | if (PID == 0) { |
| 10 | MPI_Init(&argc, &argv); |
| 11 | MPI_Finalize(); |
| 12 | } |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
