Changeset 1520 for XIOS/dev/branch_openmp/extern/src_ep_dev/ep_init.cpp
- Timestamp:
- 06/04/18 19:25:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/src_ep_dev/ep_init.cpp
r1134 r1520 11 11 int MPI_Init_thread(int *argc, char*** argv, int required, int*provided) 12 12 { 13 //printf("MPI_Init_thread\n");13 Debug("MPI_Init_thread with EP/MPI\n"); 14 14 15 int id = omp_get_thread_num(); 16 17 if(id == 0) 15 if(omp_get_thread_num() == 0) 18 16 { 19 17 ::MPI_Init_thread(argc, argv, required, provided); 20 18 } 21 return 0;22 19 } 23 20 24 21 int MPI_Init(int *argc, char ***argv) 25 22 { 26 //printf("MPI_init called\n"); 27 int id = omp_get_thread_num(); 23 Debug("MPI_Init with EP/MPI\n"); 28 24 29 if( id== 0)25 if(omp_get_thread_num() == 0) 30 26 { 31 27 ::MPI_Init(argc, argv); 32 28 } 33 return 0;34 29 } 35 30 36 31 int MPI_Initialized(int *flag) 37 32 { 38 //printf("MPI_initialized called\n");33 Debug("MPI_Initialized with EP/MPI\n"); 39 34 40 ::MPI_Initialized(flag); 41 42 return 0; 35 return ::MPI_Initialized(flag); 43 36 } 44 37
Note: See TracChangeset
for help on using the changeset viewer.