Changeset 1875 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.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/domain.hpp
r1870 r1875 111 111 112 112 static bool dispatchEvent(CEventServer& event); 113 114 bool checkIfCompleted(void) ; 115 void setCompleted(void) ; 116 void setUncompleted(void) ; 113 114 private: 115 /** define if the domain is completed or not ie all attributes have been received before in case 116 of grid reading from file or coupling */ 117 bool isCompleted_=true ; 118 public: 119 /*! 120 \brief Check if a domain is completed 121 Before make any domain processing, we must be sure that all domain informations have 122 been sent, for exemple when reading a grid in a file or when grid elements are sent by an 123 other context (coupling). So all direct reference of the domain (domain_ref) must be also completed 124 \return true if domain and domain reference are completed 125 */ 126 bool isCompleted(void) 127 { 128 if (hasDirectDomainReference()) if (!getDirectDomainReference()->isCompleted()) return false; 129 else return isCompleted_ ; 130 } 131 void setCompleted(void) { isCompleted_=true ; } 132 void unsetCompleted(void) { isCompleted_=false ; } 117 133 118 134 public: … … 190 206 std::set<CContextClient*> sendDomainToFileServer_done_ ; 191 207 private: 192 208 public: 209 void sendDomainToCouplerOut(CContextClient* client, const string& fieldId, int posInGrid) ; 210 private: 211 std::set<CContextClient*> sendDomainToCouplerOut_done_ ; 212 213 public: 214 void makeAliasForCoupling(const string& fieldId, int posInGrid) ; 215 216 private: 217 193 218 void sendAttributes(); // ym obsolete -> to be removed 194 void sendIndex(CContextClient* client );195 void sendDistributionAttributes(CContextClient* client );196 void sendArea(CContextClient* client );197 void sendLonLat(CContextClient* client );198 void sendDataIndex(CContextClient* client );219 void sendIndex(CContextClient* client, const string& domainId=""); 220 void sendDistributionAttributes(CContextClient* client, const string& domainId=""); 221 void sendArea(CContextClient* client, const string& domainId=""); 222 void sendLonLat(CContextClient* client, const string& domainId=""); 223 void sendDataIndex(CContextClient* client, const string& domainId=""); 199 224 void convertLonLatValue(); 200 225 void fillInRectilinearLonLat(); … … 228 253 bool isClientChecked; // Verify whether all attributes of domain on the client side are good 229 254 bool isClientAfterTransformationChecked; 230 231 /** define if the domain is completed or not ie all attributes have been received before in case232 of grid reading from file or coupling */233 bool isCompleted_=true ;234 255 235 256 /** global index of the domain on server side, sent by the clients. This is global index for lon, lat, mask elements (ie non masked elements)
Note: See TracChangeset
for help on using the changeset viewer.