Changeset 1642 for XIOS/dev/branch_openmp/src/node/domain.hpp
- Timestamp:
- 01/23/19 10:31:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/node/domain.hpp
r1545 r1642 17 17 #include "transformation_enum.hpp" 18 18 #include "server_distribution_description.hpp" 19 #include "mpi_std.hpp"20 19 #include "mesh.hpp" 21 20 … … 50 49 { 51 50 EVENT_ID_INDEX, EVENT_ID_LON, EVENT_ID_LAT, 52 EVENT_ID_AREA, EVENT_ID_MASK,51 EVENT_ID_AREA, 53 52 EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT 54 53 } ; … … 143 142 CArray<double, 1> areavalue; 144 143 145 CArray< size_t,1> localIndexToWriteOnServer;144 CArray<int,1> localIndexToWriteOnServer; 146 145 147 146 CArray<bool, 1> domainMask; // mask_1d, mask_2d -> domainMask … … 152 151 bool hasLonLat; 153 152 bool hasPole ; 153 bool hasLatInReadFile_ ; // specify if latitude is defined on read file, so it can be read later when grid distribution will be defined 154 bool hasBoundsLatInReadFile_ ; // specify if latitude boundarues are defined on read file, so it can be read later when grid distribution will be defined 155 bool hasLonInReadFile_ ; // specify if longitude is defined on read file, so it can be read later when grid distribution will be defined 156 bool hasBoundsLonInReadFile_ ; // specify if longitude boundaries are defined on read file, so it can be read later when grid distribution will be defined 154 157 155 158 void computeLocalMask(void) ; … … 166 169 void checkArea(void); 167 170 void checkLonLat(); 168 void checkZoom(void);169 171 170 172 void setTransformations(const TransMapTypes&); … … 173 175 void sendIndex(); 174 176 void sendDistributionAttributes(); 175 void sendMask();176 177 void sendArea(); 177 178 void sendLonLat(); … … 184 185 static void recvDistributionAttributes(CEventServer& event); 185 186 static void recvIndex(CEventServer& event); 186 static void recvIndexZoom(CEventServer& event);187 static void recvMask(CEventServer& event);188 187 static void recvLon(CEventServer& event); 189 188 static void recvLat(CEventServer& event); … … 192 191 void recvDistributionAttributes(CBufferIn& buffer); 193 192 void recvIndex(std::map<int, CBufferIn*>& rankBuffers); 194 void recvMask(std::map<int, CBufferIn*>& rankBuffers);195 193 void recvLon(std::map<int, CBufferIn*>& rankBuffers); 196 194 void recvLat(std::map<int, CBufferIn*>& rankBuffers); … … 201 199 void computeConnectedClients(); 202 200 203 private: 201 private: 204 202 205 203 /** Clients that have to send a domain. There can be multiple clients in case of secondary server, otherwise only one client. */ … … 207 205 std::set<CContextClient*> clientsSet; 208 206 209 bool doZoomByIndex_;210 207 bool isChecked, computedWrittenIndex_; 211 208 std::set<StdString> relFiles, relFilesCompressed; … … 234 231 private: 235 232 static bool initializeTransformationMap(std::map<StdString, ETranformationType>& m); 236 static bool initializeTransformationMap(); 237 static std::map<StdString, ETranformationType> *transformationMapList_ptr; 238 #pragma omp threadprivate(transformationMapList_ptr) 233 static std::map<StdString, ETranformationType> transformationMapList_; 239 234 static bool _dummyTransformationMapList; 240 #pragma omp threadprivate(_dummyTransformationMapList)241 235 242 236 DECLARE_REF_FUNC(Domain,domain)
Note: See TracChangeset
for help on using the changeset viewer.