Ignore:
Timestamp:
01/10/17 14:36:29 (7 years ago)
Author:
oabramkina
Message:

Intermeadiate version for merging with new server functionalities.

File:
1 edited

Legend:

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

    r1009 r1021  
    5757 
    5858          unsigned long hashClient = hashString(codeId) ; 
    59           unsigned long hashServer = hashString(CXios::xiosCodeIdPrm); 
     59          unsigned long hashServer = hashString(CXios::xiosCodeId); 
     60//          unsigned long hashServer = hashString(CXios::xiosCodeIdPrm); 
    6061          unsigned long* hashAll ; 
    6162          int size ; 
     
    8889          for (i=0; i < size; ++i) 
    8990          { 
    90             if ((hashAll[i] == hashString(CXios::xiosCodeId)) 
    91                 || (hashAll[i] == hashString(CXios::xiosCodeIdPrm)) 
    92                 || (hashAll[i] == hashString(CXios::xiosCodeIdSnd))) 
     91            if (hashAll[i] == hashString(CXios::xiosCodeId)) 
     92//                || (hashAll[i] == hashString(CXios::xiosCodeIdPrm)) 
     93//                || (hashAll[i] == hashString(CXios::xiosCodeIdSnd))) 
    9394            { 
    9495              CXios::setUsingServer(); 
     
    103104          { 
    104105            int clientLeader=leaders[hashClient] ; 
    105 //            serverLeader=leaders[hashServer] ; 
    106106            serverLeader.push_back(leaders[hashServer]) ; 
    107107            int intraCommSize, intraCommRank ; 
     
    111111                   <<" intraCommRank :"<<intraCommRank<<"  clientLeader "<< serverLeader.back()<<endl ; 
    112112             MPI_Intercomm_create(intraComm, 0, CXios::globalComm, serverLeader.back(), 0, &interComm) ; 
    113 //             info(50)<<"intercommCreate::client "<<rank<<" intraCommSize : "<<intraCommSize 
    114 //                    <<" intraCommRank :"<<intraCommRank<<"  clientLeader "<< serverLeader<<endl ; 
    115 //              MPI_Intercomm_create(intraComm,0,CXios::globalComm,serverLeader,0,&interComm) ; 
    116113          } 
    117114          else 
     
    181178/*! 
    182179 * \fn void CClient::registerContext(const string& id, MPI_Comm contextComm) 
    183  * Function creates intraComm (CClient::intraComm) for client group with id=codeId and interComm (CClient::interComm) between client and server groups. 
     180 * \brief Sends a request to create a context to server. Creates client/server contexts. 
    184181 * \param [in] id id of context. 
    185182 * \param [in] contextComm. 
     183 * Function is only called by client. 
    186184 */ 
    187185    void CClient::registerContext(const string& id, MPI_Comm contextComm) 
     
    250248    } 
    251249 
    252     ///--------------------------------------------------------------- 
    253     /*! 
    254      * \fn void CClient::registerContext(const string& id, const int poolNb, MPI_Comm contextComm) 
    255      * Function creates intraComm (CClient::intraComm) for client group with id=codeId and interComm (CClient::interComm) between client and server groups. 
    256      * \param [in] id id of context. 
    257      * \param [in] contextComm. 
    258      */ 
    259         void CClient::registerContextOnSrvPools(const string& id, MPI_Comm contextComm) 
     250///--------------------------------------------------------------- 
     251/*! 
     252  * \fn void CClient::registerContextByClienOfServer(const string& id, MPI_Comm contextComm) 
     253  * \brief Sends a request to create contexts on secondary servers. Creates clientPrimServer/serverPrimServer contexts. 
     254  * \param [in] id id of context. 
     255  * \param [in] contextComm. 
     256  * Function is called by primary server. 
     257  * The only difference with CClient::registerContext() is naming of contexts on servers (appearing of pool id at the end). 
     258  */ 
     259        void CClient::registerContextByClienOfServer(const string& id, MPI_Comm contextComm) 
    260260        { 
    261261          CContext::setCurrent(id) ; 
Note: See TracChangeset for help on using the changeset viewer.