Ignore:
Timestamp:
06/12/18 11:54:13 (6 years ago)
Author:
yushan
Message:

update intercomm_merge and remove redundant files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_init.cpp

    r1533 r1539  
    22#include <mpi.h> 
    33#include "ep_declaration.hpp" 
     4#include "ep_mpi.hpp" 
    45 
     6extern MPI_Group MPI_GROUP_WORLD; 
    57 
    68namespace ep_lib 
     
    1315    Debug("MPI_Init_thread with EP/MPI\n"); 
    1416 
    15     if(omp_get_thread_num() == 0) 
     17    #pragma omp master 
    1618    { 
    1719      ::MPI_Init_thread(argc, argv, required, provided); 
     20      ::MPI_Comm_group(to_mpi_comm(MPI_COMM_WORLD->mpi_comm), &MPI_GROUP_WORLD); 
    1821    } 
    1922  } 
     
    2326    Debug("MPI_Init with EP/MPI\n"); 
    2427 
    25     if(omp_get_thread_num() == 0) 
     28    #pragma omp master 
    2629    { 
    2730      ::MPI_Init(argc, argv); 
    2831    } 
    29   } 
    30    
    31   int EP_group_init() 
    32   { 
    33    
    3432  } 
    3533 
Note: See TracChangeset for help on using the changeset viewer.