Last change
on this file since 15396 was 14917, checked in by Eric.Larour, 12 years ago |
CHG: got rid of the include/include.h headere file, finally :)
|
File size:
559 bytes
|
Line | |
---|
1 | /*!\file: EnvironmentFinalize.cpp
|
---|
2 | * \brief: finalize Petsc, MPI, you name it
|
---|
3 | */
|
---|
4 | #ifdef HAVE_CONFIG_H
|
---|
5 | #include <config.h>
|
---|
6 | #else
|
---|
7 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
8 | #endif
|
---|
9 | #include "../toolkits/toolkits.h"
|
---|
10 | #include "../shared/shared.h"
|
---|
11 |
|
---|
12 | void EnvironmentFinalize(void){
|
---|
13 |
|
---|
14 | #ifdef _HAVE_MPI_
|
---|
15 |
|
---|
16 | /*Make sure we are all here*/
|
---|
17 | MPI_Barrier(MPI_COMM_WORLD);
|
---|
18 |
|
---|
19 | /*Print closing statement*/
|
---|
20 | int my_rank;
|
---|
21 | MPI_Comm_rank(MPI_COMM_WORLD,&my_rank);
|
---|
22 | if(!my_rank) printf("closing MPI\n");
|
---|
23 |
|
---|
24 | /*Finalize: */
|
---|
25 | MPI_Finalize();
|
---|
26 |
|
---|
27 | #endif
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.