Changeset 676 for XIOS/trunk/src/node/grid.hpp
- Timestamp:
- 08/25/15 16:52:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.hpp
r664 r676 48 48 typedef CGridAttributes SuperClassAttribute; 49 49 50 public 50 public: 51 51 52 52 typedef CGridAttributes RelAttributes; … … 72 72 // void solveReference(void); 73 73 74 void checkEligibilityForCompressedOutput(); 75 74 76 void solveDomainAxisRef(bool areAttributesChecked); 75 77 … … 79 81 // virtual void fromBinary(StdIStream& is); 80 82 83 void addRelFileCompressed(const StdString& filename); 84 81 85 /// Tests /// 82 bool hasAxis(void) const; 83 84 public : 86 bool isCompressible(void) const; 87 bool isWrittenCompressed(const StdString& filename) const; 88 89 public: 85 90 86 91 /// Accesseurs /// … … 98 103 void inputField(int rank, const double* const field, CArray<double,1>& stored); 99 104 105 void outputCompressedField(int rank, const CArray<double,1>& stored, double* field); 106 100 107 virtual void parse(xml::CXMLNode& node); 101 108 … … 103 110 virtual ~CGrid(void); 104 111 105 public 112 public: 106 113 107 114 /// Accesseurs statiques /// … … 116 123 static CGrid* createGrid(std::vector<CDomain*> domains, std::vector<CAxis*> axis, CArray<bool,1> axisDomainOrder = CArray<bool,1>()); 117 124 118 public 125 public: 119 126 120 127 /// Entrées-sorties de champs (interne) /// … … 126 133 void computeIndex(void); 127 134 void computeIndexScalarGrid(); 135 void computeCompressedIndex(); 128 136 129 137 void solveDomainRef(bool checkAtt); … … 163 171 bool doGridHaveDataDistributed(); 164 172 size_t getWrittenDataSize() const; 173 int getNumberWrittenIndexes() const; 174 int getTotalNumberWrittenIndexes() const; 175 int getOffsetWrittenIndexes() const; 165 176 166 177 const CDistributionServer* getDistributionServer() const; … … 184 195 map<int,int> nbSenders; 185 196 186 map<int, CArray<size_t, 1> > outIndexFromClient ;197 map<int, CArray<size_t, 1> > outIndexFromClient, compressedOutIndexFromClient; 187 198 void checkMask(void); 188 199 void modifyMask(const CArray<int,1>& indexToModify); … … 221 232 222 233 std::vector<int> globalDim_; 234 223 235 private: 224 236 CDomainGroup* vDomainGroup_; … … 231 243 CClientServerMapping* clientServerMap_; 232 244 size_t writtenDataSize_; 245 int numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 233 246 std::map<int,size_t> connectedDataSize_; 234 247 std::vector<int> connectedServerRank_; 235 248 bool isDataDistributed_; 236 249 int positionDimensionDistributed_; 250 //! True if and only if the data defined on the grid can be outputted in a compressed way 251 bool isCompressible_; 252 std::set<std::string> relFilesCompressed; 237 253 238 254 bool isTransformed_;
Note: See TracChangeset
for help on using the changeset viewer.