Changeset 1875 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp
- Timestamp:
- 05/12/20 11:52:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp
r1870 r1875 124 124 bool isEqual(CAxis* axis); 125 125 126 bool checkIfCompleted(void) ;127 void setCompleted(void) ;128 void setUncompleted(void) ;129 130 126 public: 131 127 bool hasValue; … … 150 146 std::set<CContextClient*> sendAxisToFileServer_done_ ; 151 147 148 public: 149 void sendAxisToCouplerOut(CContextClient* client, const std::vector<int>& globalDim, int orderPositionInGrid, const string& fieldId, int posInGrid) ; 150 private: 151 std::set<CContextClient*> sendAxisToCouplerOut_done_ ; 152 153 public: 154 void makeAliasForCoupling(const string& fieldId, int posInGrid) ; 155 152 156 private: 153 157 void sendAttributes(CContextClient* client, const std::vector<int>& globalDim, int orderPositionInGrid, 154 CServerDistributionDescription::ServerDistributionType distType );158 CServerDistributionDescription::ServerDistributionType distType, const string& axisId=""); 155 159 void sendDistributionAttribute(CContextClient* client, const std::vector<int>& globalDim, int orderPositionInGrid, 156 CServerDistributionDescription::ServerDistributionType distType );157 158 159 void sendNonDistributedAttributes(CContextClient* client );160 void sendDistributedAttributes(CContextClient* client );160 CServerDistributionDescription::ServerDistributionType distType, const string& axisId=""); 161 162 163 void sendNonDistributedAttributes(CContextClient* client, const string& axisId=""); 164 void sendDistributedAttributes(CContextClient* client, const string& axisId=""); 161 165 162 166 static void recvNonDistributedAttributes(CEventServer& event); … … 171 175 private: 172 176 173 /** Clients that have to send a domain. There can be multiple clients in case of secondary server, otherwise only one client. */177 /** Clients that have to send a axis. There can be multiple clients in case of secondary server, otherwise only one client. */ 174 178 std::list<CContextClient*> clients; 175 179 std::set<CContextClient*> clientsSet; 176 180 181 private: 177 182 /** define if the axis is completed or not ie all attributes have been received before in case 178 183 of grid reading from file or coupling */ 179 184 bool isCompleted_=true ; 180 185 public: 186 /*! 187 \brief Check if a axis is completed 188 Before make any axis processing, we must be sure that all axis informations have 189 been sent, for exemple when reading a grid in a file or when grid elements are sent by an 190 other context (coupling). So all direct reference of the axis (axis_ref) must be also completed 191 \return true if axis and axis reference are completed 192 */ 193 bool isCompleted(void) 194 { 195 if (hasDirectAxisReference()) if (!getDirectAxisReference()->isCompleted()) return false; 196 else return isCompleted_ ; 197 } 198 void setCompleted(void) { isCompleted_=true ; } 199 void unsetCompleted(void) { isCompleted_=false ; } 200 201 private: 181 202 bool isChecked; 182 203 bool areClientAttributesChecked_;
Note: See TracChangeset
for help on using the changeset viewer.