- Timestamp:
- Feb 12, 2016, 9:23:13 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/build_links.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/build_links.c
r37807 r39346 34 34 35 35 ALLOCATE (next_meas, off_t, Nmeasure); 36 for (i = 0; i < Naverage; i++, N++) { 36 for (i = 0; i < Naverage; i++) { 37 if (!average[i].Nmeasure) continue; 37 38 for (j = 0; j < average[i].Nmeasure - 1; j++, N++) { 38 39 next_meas[N] = N + 1; … … 45 46 fprintf (stderr, "WARNING: N out of bounds (2)\n"); 46 47 } 47 48 48 if (N >= Nmeasure) { 49 49 myAbort ("overflow in init_measure_links\n"); 50 50 } 51 N++; 51 52 } 52 53 return (next_meas); … … 168 169 ALLOCATE (next_miss, off_t, Nmissing); 169 170 for (i = 0; i < Naverage; i++) { 171 if (!average[i].Nmissing) continue; 170 172 for (j = 0; j < average[i].Nmissing - 1; j++, N++) { 171 173 next_miss[N] = N + 1; 172 174 } 173 if (average[i].Nmissing > 0) { 174 next_miss[N] = -1; 175 if (N >= Nmissing) { 176 myAbort ("overflow in init_missing_links"); 177 } 178 N++; 179 } 180 175 next_miss[N] = -1; 176 if (N >= Nmissing) { 177 myAbort ("overflow in init_missing_links"); 178 } 179 N++; 181 180 } 182 181 return (next_miss); … … 249 248 fprintf (stderr, "WARNING: N out of bounds (2)\n"); 250 249 } 251 252 250 if (N >= Nlensing) { 253 251 myAbort ("overflow in init_lensing_links\n");
Note:
See TracChangeset
for help on using the changeset viewer.
