Ignore:
Timestamp:
01/22/19 16:43:32 (5 years ago)
Author:
yushan
Message:

revert erroneous commit on trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/cxios.cpp

    r1638 r1639  
    2626  bool CXios::isClient ; 
    2727  bool CXios::isServer ; 
    28   ep_lib::MPI_Comm CXios::globalComm ; 
     28  MPI_Comm CXios::globalComm ; 
    2929  bool CXios::usingOasis ; 
    3030  bool CXios::usingServer = false; 
     
    9090 
    9191    checkEventSync = getin<bool>("check_event_sync", checkEventSync); 
    92     #ifdef _usingMPI 
     92 
    9393    globalComm=MPI_COMM_WORLD ; 
    94     #elif _usingEP 
    95     ep_lib::MPI_Comm *ep_comm; 
    96     ep_lib::MPI_Info info; 
    97     ep_lib::MPI_Comm_create_endpoints(EP_COMM_WORLD->mpi_comm, 1, info, ep_comm); 
    98     ep_lib::passage = ep_comm; 
    99     globalComm=ep_lib::passage[0] ; 
    100     #endif 
    10194  } 
    10295 
     
    107100  \param [in/out] returnComm communicator corresponding to group of client with same codeId 
    108101  */ 
    109   void CXios::initClientSide(const string& codeId, ep_lib::MPI_Comm& localComm, ep_lib::MPI_Comm& returnComm) 
     102  void CXios::initClientSide(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm) 
    110103  TRY 
    111104  { 
     105    initialize() ; 
     106 
    112107    isClient = true; 
    113     isServer = false; 
    114  
    115     initialize() ; 
    116  
    117108 
    118109    CClient::initialize(codeId,localComm,returnComm) ; 
    119110    if (CClient::getRank()==0) globalRegistry = new CRegistry(returnComm) ; 
    120  
    121111 
    122112    // If there are no server processes then we are in attached mode 
     
    177167  void CXios::initServerSide(void) 
    178168  { 
    179     isClient = false; 
    180     isServer = true; 
    181  
    182169    initServer(); 
    183170    isClient = false; 
    184171    isServer = true; 
     172 
    185173    // Initialize all aspects MPI 
    186174    CServer::initialize(); 
     
    235223        int firstPoolGlobalRank = secondaryServerGlobalRanks[0]; 
    236224        int rankGlobal; 
    237         ep_lib::MPI_Comm_rank(globalComm, &rankGlobal); 
     225        MPI_Comm_rank(globalComm, &rankGlobal); 
    238226 
    239227        // Merge registries defined on each pools 
     
    247235            globalRegistrySndServers.mergeRegistry(*globalRegistry) ; 
    248236            int registrySize = globalRegistrySndServers.size(); 
    249             ep_lib::MPI_Send(&registrySize,1,EP_LONG,firstPoolGlobalRank,15,CXios::globalComm) ; 
     237            MPI_Send(&registrySize,1,MPI_LONG,firstPoolGlobalRank,15,CXios::globalComm) ; 
    250238            CBufferOut buffer(registrySize) ; 
    251239            globalRegistrySndServers.toBuffer(buffer) ; 
    252             ep_lib::MPI_Send(buffer.start(),registrySize,EP_CHAR,firstPoolGlobalRank,15,CXios::globalComm) ; 
     240            MPI_Send(buffer.start(),registrySize,MPI_CHAR,firstPoolGlobalRank,15,CXios::globalComm) ; 
    253241          } 
    254242        } 
     
    257245        if (rankGlobal == firstPoolGlobalRank) 
    258246        { 
    259           ep_lib::MPI_Status status; 
     247          MPI_Status status; 
    260248          char* recvBuff; 
    261249 
     
    266254            int rank = secondaryServerGlobalRanks[i]; 
    267255            int registrySize = 0; 
    268             ep_lib::MPI_Recv(&registrySize, 1, EP_LONG, rank, 15, CXios::globalComm, &status); 
     256            MPI_Recv(&registrySize, 1, MPI_LONG, rank, 15, CXios::globalComm, &status); 
    269257            recvBuff = new char[registrySize]; 
    270             ep_lib::MPI_Recv(recvBuff, registrySize, EP_CHAR, rank, 15, CXios::globalComm, &status); 
     258            MPI_Recv(recvBuff, registrySize, MPI_CHAR, rank, 15, CXios::globalComm, &status); 
    271259            CBufferIn buffer(recvBuff, registrySize) ; 
    272260            CRegistry recvRegistry; 
Note: See TracChangeset for help on using the changeset viewer.