Last change
on this file since 1081 was
1053,
checked in by yushan, 7 years ago
|
ep_lib namespace specified when netcdf involved
|
File size:
508 bytes
|
Rev | Line | |
---|
[1037] | 1 | #include "ep_lib.hpp" |
---|
| 2 | #include <mpi.h> |
---|
| 3 | #include "ep_declaration.hpp" |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | namespace ep_lib |
---|
| 7 | { |
---|
| 8 | |
---|
| 9 | int MPI_Finalize() |
---|
| 10 | { |
---|
| 11 | printf("calling EP Finalize\n"); |
---|
| 12 | |
---|
| 13 | int id = omp_get_thread_num(); |
---|
| 14 | |
---|
| 15 | if(id == 0) |
---|
| 16 | { |
---|
| 17 | ::MPI_Finalize(); |
---|
| 18 | } |
---|
| 19 | return 0; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | int MPI_Abort(MPI_Comm comm, int errorcode) |
---|
| 23 | { |
---|
| 24 | int id = omp_get_thread_num(); |
---|
| 25 | |
---|
| 26 | if(id == 0) |
---|
| 27 | { |
---|
| 28 | ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm >(comm.mpi_comm); |
---|
| 29 | ::MPI_Abort(mpi_comm, errorcode); |
---|
| 30 | } |
---|
| 31 | return 0; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.