source:
CIVL/mods/dev.civl.com/examples/mpi/simple/goodInitFinalize.c@
e49edeb
| Last change on this file since e49edeb was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 172 bytes | |
| Rev | Line | |
|---|---|---|
| [a9a9973] | 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.
