Changeset 17285 for trunk/Mars/mcore/zofits.h
- Timestamp:
- 10/21/13 12:05:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/zofits.h
r17281 r17285 314 314 fTable.num_rows++; 315 315 316 DrsOffsetCalibrate(target_location);317 318 316 if (fTable.num_rows % fNumRowsPerTile != 0) 319 317 { … … 324 322 // use the least occupied queue 325 323 const auto imin = std::min_element(fCompressionQueues.begin(), fCompressionQueues.end()); 324 326 325 if (!imin->emplace(InitNextCompression())) 327 326 throw std::runtime_error("The compression queues are not started. Did you close the file before writing this row?"); … … 631 630 //Really do not understand what's wrong... 632 631 //calibrate data if required 633 //const uint32_t thisRoundNumRows = (target.num_rows%fNumRowsPerTile) ? target.num_rows%fNumRowsPerTile : fNumRowsPerTile; 634 // for (uint32_t i=0;i<thisRoundNumRows;i++) 635 // { 636 // char* target_location = target.src.get() + fRealRowWidth*i; 637 // cout << "Target Location there...." << hex << static_cast<void*>(target_location) << endl; 638 // DrsOffsetCalibrate(target_location); 639 // } 640 632 const uint32_t thisRoundNumRows = (target.num_rows%fNumRowsPerTile) ? target.num_rows%fNumRowsPerTile : fNumRowsPerTile; 633 for (uint32_t i=0;i<thisRoundNumRows;i++) 634 { 635 char* target_location = target.src.get() + fRealRowWidth*i; 636 DrsOffsetCalibrate(target_location); 637 } 641 638 #ifdef __EXCEPTIONS 642 639 try … … 644 641 #endif 645 642 //transpose the original data 646 copyTransposeTile(target.src.get(), target.transposed_src.get() );643 copyTransposeTile(target.src.get(), target.transposed_src.get(), target.num_rows); 647 644 648 645 //compress the buffer … … 787 784 /// @param src buffer hosting the regular, row-ordered data 788 785 /// @param dest the target buffer that will receive the transposed data 789 void copyTransposeTile(const char* src, char* dest )790 { 791 const uint32_t thisRoundNumRows = ( fTable.num_rows%fNumRowsPerTile) ? fTable.num_rows%fNumRowsPerTile : fNumRowsPerTile;786 void copyTransposeTile(const char* src, char* dest, uint32_t num_rows) 787 { 788 const uint32_t thisRoundNumRows = (num_rows%fNumRowsPerTile) ? num_rows%fNumRowsPerTile : fNumRowsPerTile; 792 789 793 790 //copy the tile and transpose it
Note:
See TracChangeset
for help on using the changeset viewer.