Ignore:
Timestamp:
10/06/23 11:32:05 (8 months ago)
Author:
jderouillat
Message:

Specify the usage of the xios namespace to overload the MPI funtions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/manager/server_context.cpp

    r2588 r2589  
    2323   int localRank, globalRank, commSize ; 
    2424 
    25     MPI_Comm_dup(contextComm, &contextComm_) ; 
     25    xios::MPI_Comm_dup(contextComm, &contextComm_) ; 
    2626    CXios::getMpiGarbageCollector().registerCommunicator(contextComm_) ; 
    2727    xiosComm_=CXios::getXiosComm() ; 
     
    104104    { 
    105105      MPI_Comm newInterCommClient, newInterCommServer ; 
    106       MPI_Comm_dup(contextComm_,&newInterCommClient) ; 
    107       MPI_Comm_dup(contextComm_,&newInterCommServer) ; 
     106      xios::MPI_Comm_dup(contextComm_,&newInterCommClient) ; 
     107      xios::MPI_Comm_dup(contextComm_,&newInterCommServer) ; 
    108108      overlapedComm_[name_]=tuple<bool, MPI_Comm, MPI_Comm>(false, newInterCommClient, newInterCommServer) ; 
    109109      MPI_Barrier(contextComm_) ; 
     
    129129      if (nOverlap==0) 
    130130      {  
    131         MPI_Intercomm_create(intraComm, 0, xiosComm_, contextLeader, 3141, &interCommClient) ; 
     131        xios::MPI_Intercomm_create(intraComm, 0, xiosComm_, contextLeader, 3141, &interCommClient) ; 
    132132        CXios::getMpiGarbageCollector().registerCommunicator(interCommClient) ; 
    133         MPI_Comm_dup(interCommClient, &interCommServer) ; 
     133        xios::MPI_Comm_dup(interCommClient, &interCommServer) ; 
    134134        CXios::getMpiGarbageCollector().registerCommunicator(interCommServer) ; 
    135         MPI_Comm_free(&newInterCommClient) ; 
    136         MPI_Comm_free(&newInterCommServer) ; 
     135        xios::MPI_Comm_free(&newInterCommClient) ; 
     136        xios::MPI_Comm_free(&newInterCommServer) ; 
    137137      } 
    138138      else 
     
    320320    {  
    321321      info(10)<<"CServerContext::createIntercomm : No overlap ==> context in server mode"<<endl ; 
    322       MPI_Intercomm_create(contextComm_, 0, xiosComm_, remoteLeader, 3141, &interCommServer) ; 
     322      xios::MPI_Intercomm_create(contextComm_, 0, xiosComm_, remoteLeader, 3141, &interCommServer) ; 
    323323      CXios::getMpiGarbageCollector().registerCommunicator(interCommServer) ; 
    324       MPI_Comm_dup(interCommServer,&interCommClient) ; 
     324      xios::MPI_Comm_dup(interCommServer,&interCommClient) ; 
    325325      CXios::getMpiGarbageCollector().registerCommunicator(interCommClient) ; 
    326326      context_ -> createClientInterComm(interCommClient,interCommServer) ; 
     
    339339    //delete winNotify_ ; 
    340340    //winNotify_=nullptr ; 
    341     //MPI_Comm_free(&contextComm_) ; 
     341    //xios::MPI_Comm_free(&contextComm_) ; 
    342342    // don't forget intercomm -> later 
    343343  } 
Note: See TracChangeset for help on using the changeset viewer.