source: issm/oecreview/Archive/23390-24306/ISSM-23547-23548.diff@ 24307

Last change on this file since 24307 was 24307, checked in by Mathieu Morlighem, 5 years ago

NEW: adding Archive/23390-24306

File size: 536 bytes
RevLine 
[24307]1Index: ../trunk-jpl/src/c/datastructures/DataSet.cpp
2===================================================================
3--- ../trunk-jpl/src/c/datastructures/DataSet.cpp (revision 23547)
4+++ ../trunk-jpl/src/c/datastructures/DataSet.cpp (revision 23548)
5@@ -437,6 +437,11 @@
6 for(int i=0;i<objects.size();i++){
7 id_offsets[i]=i;
8 sorted_ids[i]=objects[i]->Id();
9+
10+ /*In debugging mode, make sure Ids are ACTUALLY sorted...*/
11+ #ifdef _ISSM_DEBUG_
12+ if(i>0) _assert_(sorted_ids[i]>sorted_ids[i-1]);
13+ #endif
14 }
15 }
16
Note: See TracBrowser for help on using the repository browser.