1.23
2.0
main
test-branch
|
Last change
on this file since 4e86cdd was 3ff27cf, checked in by Manchun Zheng <zmanchun@…>, 11 years ago |
|
updated examples since $assert/$assume has been changed to functions; fixed the model builder for the new side-effect remover.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2085 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
402 bytes
|
| Rev | Line | |
|---|
| [3ff27cf] | 1 | #ifdef _CIVL
|
|---|
| 2 | #include <civlc.cvh>
|
|---|
| 3 | #endif
|
|---|
| [a96092d] | 4 | #include <mpi.h>
|
|---|
| [3af26ac] | 5 | #include <civl-mpi.cvh>
|
|---|
| [a96092d] | 6 | #include <assert.h>
|
|---|
| 7 |
|
|---|
| 8 | #ifdef _CIVL
|
|---|
| 9 | $input int _NPROCS_LOWER_BOUND = 1;
|
|---|
| 10 | $input int _NPROCS_UPPER_BOUND = 6;
|
|---|
| 11 | #endif
|
|---|
| 12 |
|
|---|
| 13 | int main(int argc, char * argv[]) {
|
|---|
| 14 | __MPI_Sys_status__ curr_status;
|
|---|
| 15 |
|
|---|
| 16 | MPI_Init(&argc, &argv);
|
|---|
| 17 | #ifdef _CIVL
|
|---|
| 18 | curr_status = CMPI_Get_status();
|
|---|
| [3ff27cf] | 19 | $assert(__INIT == curr_status);
|
|---|
| [a96092d] | 20 | #endif
|
|---|
| 21 | MPI_Finalize();
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.