Ignore:
Timestamp:
11/05/19 16:02:34 (5 years ago)
Author:
ymipsl
Message:

Some Update on XIOS services
Seems to work on Irène for :

  • first level of servers
  • fisrt + second level of servers
  • attached mode

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_SERVICES/src/manager/services.hpp

    r1761 r1764  
    1616    public: 
    1717     
     18    const int NOTIFY_NOTHING=0 ; 
     19    const int NOTIFY_CREATE_CONTEXT=1 ; 
     20 
    1821    CService(MPI_Comm serviceComm, const std::string& poolId, const std::string& serviceId, const int& partitionId,  
    1922             int type, int nbPartitions) ; 
    20     bool eventLoop(void) ; 
     23    bool eventLoop(bool serviceOnly=false) ; 
    2124    void createContext(const std::string& poolId, const std::string& serviceId, const int& partitionId, const std::string& contextId) ; 
    2225    void checkCreateContextNotification(void) ; 
     
    3639 
    3740    private: 
    38      
     41    void sendNotification(int rank) ; 
     42    void notificationsDumpOut(CBufferOut& buffer) ; 
     43    void notificationsDumpIn(CBufferIn& buffer) ; 
     44    void checkNotifications(void) ; 
     45    void createContext(void) ; 
     46 
    3947    MPI_Comm serviceComm_ ; 
    4048    MPI_Comm globalComm_ ; 
    41     
     49 
    4250    const size_t maxBufferSize_=1024*1024 ; 
    4351    const int localLeader_=0 ; 
    4452    int globalLeader_ ; 
    4553    CWindowManager* winNotify_ ; 
     54     
     55    std::string name_ ; 
     56 
    4657    std::list<std::tuple<std::string, std::string, int, std::string>> notifications_; 
     58     
     59    bool hasNotification_ ; 
     60    int notifyInType_,notifyOutType_ ; 
     61    std::tuple<std::string, std::string, int, std::string> notifyInCreateContext_, notifyOutCreateContext_ ; 
     62 
    4763    std::map<std::string, CServerContext*> contexts_ ; 
    4864    bool finalizeSignal_ ; 
Note: See TracChangeset for help on using the changeset viewer.