Changeset 2034 for XIOS/dev/dev_oa/src/node/domain.cpp
- Timestamp:
- 02/15/21 21:14:02 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_oa/src/node/domain.cpp
r1966 r2034 35 35 , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 36 36 , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 37 , isTiled_(false) 37 , isTiled_(false), isTiledOnly_(false) 38 38 { 39 39 } … … 49 49 , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 50 50 , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 51 , isTiled_(false) 51 , isTiled_(false), isTiledOnly_(false) 52 52 { 53 53 } … … 255 255 { 256 256 return isTiled_; 257 } 258 CATCH 259 260 bool CDomain::isTiledOnly(void) const 261 TRY 262 { 263 return isTiledOnly_; 257 264 } 258 265 CATCH … … 1285 1292 } 1286 1293 } 1294 } 1295 CATCH_DUMP_ATTR 1296 1297 //---------------------------------------------------------------- 1298 1299 /*! 1300 * For tiled domains, data_i/j_index should not take into 1301 * account parameters defining data (data_ni/nj, data_i/jbegin...) 1302 * \param [out] dataIndexI 1303 * \param [out] dataIndexJ 1304 * \param [out] infoIndexI 1305 * \param [out] infoIndexJ 1306 */ 1307 1308 void CDomain::computeCompressionTiled(CArray<int,1>& dataIndexI, CArray<int,1>& dataIndexJ, 1309 CArray<int,1>& infoIndexI, CArray<int,1>& infoIndexJ) 1310 TRY 1311 { 1312 const int dsize = ni * nj; 1313 dataIndexI.resize(dsize); 1314 dataIndexJ.resize(dsize); 1315 1316 dataIndexJ = 0; 1317 for (int k = 0; k < ni; ++k) 1318 dataIndexI(k) = k; 1319 1320 infoIndexI.resize(ni*nj); 1321 for (int j = 0; j < nj; ++j) 1322 for (int i = 0; i < ni; ++i) infoIndexI(i+j*ni) = i+ibegin; 1323 1324 infoIndexJ.resize(ni*nj); 1325 for (int j = 0; j < nj; ++j) 1326 for (int i = 0; i < ni; ++i) infoIndexJ(i+j*ni) = j+jbegin; 1287 1327 } 1288 1328 CATCH_DUMP_ATTR … … 1752 1792 TRY 1753 1793 { 1754 if (!ntiles.isEmpty() && ntiles.getValue() >1) isTiled_ = true; 1794 if (!ntiles.isEmpty() && ntiles.getValue() >=1) isTiled_ = true; 1795 if (!tile_only.isEmpty() && tile_only.getValue() == true) { 1796 isTiled_ = true; 1797 isTiledOnly_ = true; 1798 } 1799 1755 1800 if (isTiled_) 1756 1801 {
Note: See TracChangeset
for help on using the changeset viewer.