1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

MPI exposed incorrectly in main

This commit is contained in:
Peter Boyle 2015-04-10 05:22:36 +02:00
parent f373517d2e
commit 516bc0c666
2 changed files with 7 additions and 0 deletions

1
Grid.h
View File

@ -52,6 +52,7 @@
namespace Grid {
void Grid_init(int *argc,char ***argv);
void Grid_finalize(void);
double usecond(void);
void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr);
void Grid_debug_handler_init(void);

View File

@ -23,6 +23,12 @@ void Grid_init(int *argc,char ***argv)
#endif
Grid_debug_handler_init();
}
void Grid_finalize(void)
{
#ifdef GRID_COMMS_MPI
MPI_Finalize();
#endif
}
double usecond(void) {
struct timeval tv;
gettimeofday(&tv,NULL);