Changeset 2019 for XIOS/dev/dev_trunk_graph/src/cxios.hpp
- Timestamp:
- 01/22/21 12:00:29 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/cxios.hpp
r1612 r2019 5 5 #include "mpi.hpp" 6 6 #include "registry.hpp" 7 #include "ressources_manager.hpp" 8 #include "services_manager.hpp" 9 #include "contexts_manager.hpp" 10 #include "daemons_manager.hpp" 11 #include "coupler_manager.hpp" 7 12 8 13 namespace xios … … 41 46 42 47 static MPI_Comm globalComm ; //!< Global communicator 48 static MPI_Comm xiosComm ; //!< Global communicator 43 49 44 50 static bool printLogs2Files; //!< Printing out logs into files … … 56 62 static double recvFieldTimeout; //!< Time to wait for data before issuing an error when receiving a field 57 63 static bool checkEventSync; //!< For debuuging, check if event are coherent and synchrone on client side 64 65 static const string defaultPoolId ; 66 static const string defaultServerId ; 67 static const string defaultGathererId ; 68 69 70 static CRessourcesManager* ressourcesManager_ ; 71 static CCouplerManager* couplerManager_ ; 72 static CServicesManager* servicesManager_ ; 73 static CContextsManager* contextsManager_ ; 74 static CDaemonsManager* daemonsManager_ ; 75 58 76 59 77 public: … … 63 81 //! Setting xios NOT to use server mode 64 82 static void setNotUsingServer(); 83 84 //! is using server mode 85 static bool isUsingServer() {return usingServer;} 65 86 66 87 //! Initialize server (if any) 67 88 static void initServer(); 89 90 static void launchServicesManager( bool isXiosServer) ; 91 static void launchContextsManager(bool isXiosServer) ; 92 static void launchDaemonsManager(bool isXiosServer) ; 93 static void launchRessourcesManager(bool isXiosServer) ; 94 static void launchCouplerManager(bool isXiosServer) ; 95 96 static void finalizeServicesManager() ; 97 static void finalizeContextsManager() ; 98 static void finalizeDaemonsManager() ; 99 static void finalizeRessourcesManager() ; 100 static void finalizeCouplerManager() ; 101 102 static CRessourcesManager* getRessourcesManager(void) { return ressourcesManager_ ;} 103 static CCouplerManager* getCouplerManager(void) { return couplerManager_ ;} 104 static CServicesManager* getServicesManager(void) { return servicesManager_ ;} 105 static CContextsManager* getContextsManager(void) { return contextsManager_ ;} 106 static CDaemonsManager* getDaemonsManager(void) { return daemonsManager_ ;} 107 static CPoolRessource* getPoolRessource(void) ; 108 109 static MPI_Comm getGlobalComm(void) { return globalComm ;} 110 static MPI_Comm getXiosComm(void) { return xiosComm ;} 111 static void setXiosComm(MPI_Comm comm) { xiosComm=comm ;} 112 static CRegistry* getGlobalRegistry(void) { return globalRegistry ;} 113 static void setGlobalRegistry(CRegistry* registry) { globalRegistry=registry ;} 68 114 69 115 private:
Note: See TracChangeset
for help on using the changeset viewer.