1.23
2.0
main
test-branch
| Rev | Line | |
|---|
| [a96092d] | 1 | #include <mpi.h>
|
|---|
| [3af26ac] | 2 | #include <civl-mpi.cvh>
|
|---|
| [a96092d] | 3 | #include <assert.h>
|
|---|
| 4 |
|
|---|
| 5 | #ifdef _CIVL
|
|---|
| 6 | $input int _NPROCS_LOWER_BOUND = 1;
|
|---|
| 7 | $input int _NPROCS_UPPER_BOUND = 6;
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | int main(int argc, char * argv[]) {
|
|---|
| 11 | __MPI_Sys_status__ curr_status;
|
|---|
| 12 |
|
|---|
| 13 | MPI_Init(&argc, &argv);
|
|---|
| 14 | #ifdef _CIVL
|
|---|
| 15 | curr_status = CMPI_Get_status();
|
|---|
| 16 | $assert __INIT == curr_status;
|
|---|
| 17 | #endif
|
|---|
| 18 | MPI_Finalize();
|
|---|
| 19 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.