Ignore:
Timestamp:
06/18/18 20:32:55 (6 years ago)
Author:
yushan
Message:

branch_openmp merged with trunk r1544

File:
1 edited

Legend:

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

    r1460 r1545  
    1818    MPI_Comm CClient::intraComm ; 
    1919    MPI_Comm CClient::interComm ; 
    20     //std::list<MPI_Comm> CClient::contextInterComms; 
    2120    std::list<MPI_Comm> *CClient::contextInterComms_ptr = 0; 
    2221    int CClient::serverLeader ; 
     
    110109            MPI_Comm_size(intraComm,&intraCommSize) ; 
    111110            MPI_Comm_rank(intraComm,&intraCommRank) ; 
     111 
     112            MPI_Intercomm_create(intraComm, 0, CXios::globalComm, serverLeader, 0, &interComm) ; 
    112113            #pragma omp critical (_output) 
    113114            { 
     
    115116                   <<" intraCommRank :"<<intraCommRank<<"  clientLeader "<< serverLeader<<endl ; 
    116117            }  
    117             MPI_Intercomm_create(intraComm, 0, CXios::globalComm, serverLeader, 0, &interComm) ; 
    118             //rank_ = intraCommRank; 
     118             
    119119          } 
    120120          else 
     
    198198        CContext::setCurrent(id); 
    199199 
    200         //contextInterComms.push_back(contextInterComm); 
    201200        if(contextInterComms_ptr == NULL) contextInterComms_ptr = new std::list<MPI_Comm>; 
    202201        contextInterComms_ptr->push_back(contextInterComm); 
     
    234233        context->initClient(contextComm,contextInterComm) ; 
    235234 
    236         //contextInterComms.push_back(contextInterComm); 
    237235        if(contextInterComms_ptr == NULL) contextInterComms_ptr = new std::list<MPI_Comm>; 
    238236        contextInterComms_ptr->push_back(contextInterComm); 
     
    260258      } 
    261259 
    262       //for (std::list<MPI_Comm>::iterator it = contextInterComms.begin(); it != contextInterComms.end(); it++) 
    263260      for (std::list<MPI_Comm>::iterator it = contextInterComms_ptr->begin(); it != contextInterComms_ptr->end(); it++) 
    264261        MPI_Comm_free(&(*it)); 
     
    333330      if (!fb->is_open()) 
    334331        ERROR("void CClient::openStream(const StdString& fileName, const StdString& ext, std::filebuf* fb)", 
    335               << std::endl << "Can not open <" << fileNameClient << "> file to write the client log(s)."); 
     332              << std::endl << "Can not open <" << fileNameClient.str() << "> file to write the client log(s)."); 
    336333    } 
    337334 
Note: See TracChangeset for help on using the changeset viewer.