Ignore:
Timestamp:
02/23/17 15:51:56 (7 years ago)
Author:
yushan
Message:

minor corrections + clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/client.cpp

    r1053 r1060  
    2424    StdOFStream CClient::m_errorStream; 
    2525 
    26     void CClient::initialize(const string& codeId,MPI_Comm& localComm,MPI_Comm& returnComm) 
     26    void CClient::initialize(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm) 
    2727    { 
    2828      int initialized ; 
     
    161161 
    162162      if (!CXios::isServer) 
    163       { 
    164        
    165          
    166          
     163      {       
    167164        int size,rank,globalRank ; 
    168165        size_t message_size ; 
     
    191188        delete [] buff ; 
    192189         
    193         printf("====== Client: begin context_init \n"); 
     190        //printf("====== Client: begin context_init \n"); 
    194191       
    195192 
     
    197194        info(10)<<"Register new Context : "<<id<<endl ; 
    198195         
    199         cout<<"Register new Context : "<<id<<endl ; 
     196        //cout<<"Register new Context : "<<id<<endl ; 
    200197               
    201198 
    202         MPI_Comm inter ; 
    203         MPI_Intercomm_merge(contextInterComm,0,&inter) ; 
    204         MPI_Barrier(inter) ; 
     199        // MPI_Comm inter ; 
     200        // MPI_Intercomm_merge(contextInterComm,0,&inter) ; 
     201        // MPI_Barrier(inter) ; 
    205202         
    206203         
    207204        context->initClient(contextComm,contextInterComm) ; 
    208205         
    209         printf("====== Client: context_init OK\n"); 
     206        //printf("====== Client: context_init OK\n"); 
    210207 
    211208        contextInterComms.push_back(contextInterComm); 
    212         MPI_Comm_free(&inter); 
     209        // MPI_Comm_free(&inter); 
    213210      } 
    214211      else 
     
    252249      for (std::list<MPI_Comm>::iterator it = contextInterComms.begin(); it != contextInterComms.end(); it++) 
    253250        MPI_Comm_free(&(*it)); 
     251       
    254252      MPI_Comm_free(&interComm); 
    255253      MPI_Comm_free(&intraComm); 
Note: See TracChangeset for help on using the changeset viewer.