mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
MPI exposed incorrectly in main
This commit is contained in:
parent
927c62d8a3
commit
993419d9fb
1
Grid.h
1
Grid.h
@ -52,6 +52,7 @@
|
|||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
|
||||||
void Grid_init(int *argc,char ***argv);
|
void Grid_init(int *argc,char ***argv);
|
||||||
|
void Grid_finalize(void);
|
||||||
double usecond(void);
|
double usecond(void);
|
||||||
void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr);
|
void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr);
|
||||||
void Grid_debug_handler_init(void);
|
void Grid_debug_handler_init(void);
|
||||||
|
@ -23,6 +23,12 @@ void Grid_init(int *argc,char ***argv)
|
|||||||
#endif
|
#endif
|
||||||
Grid_debug_handler_init();
|
Grid_debug_handler_init();
|
||||||
}
|
}
|
||||||
|
void Grid_finalize(void)
|
||||||
|
{
|
||||||
|
#ifdef GRID_COMMS_MPI
|
||||||
|
MPI_Finalize();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
double usecond(void) {
|
double usecond(void) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv,NULL);
|
gettimeofday(&tv,NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user