@@ -228,20 +228,23 @@ HighsStatus assessMatrix(
228228 // Reset el_in_vec
229229 for (HighsInt el = from_el; el < to_el; el++)
230230 el_in_vec[matrix_index[el]] = illegal_el;
231- const bool expensive_2821_check = true ;
231+ // const bool expensive_2821_check = true;
232+ /*
232233 if (expensive_2821_check) {
233234 // Check el_in_vec !! Remove later!
234235 for (HighsInt lc_ix = 0; lc_ix < vec_dim; lc_ix++)
235236 assert(el_in_vec[lc_ix] == illegal_el);
236237 }
237-
238+ */
238239 for (HighsInt el = from_el; el < to_el; el++) {
239240 HighsInt component = matrix_index[el];
241+ /*
240242 if (expensive_2821_check) {
241243 // Ensure that duplicates have been eliminated
242244 HighsInt previous_el = el_in_vec[component];
243245 assert(previous_el == illegal_el);
244246 }
247+ */
245248 // Check the value
246249 double abs_value = fabs (matrix_value[el]);
247250 // Check that the value is not too large
@@ -263,14 +266,17 @@ HighsStatus assessMatrix(
263266 // the new number of nonzeros
264267 matrix_index[num_new_nz] = matrix_index[el];
265268 matrix_value[num_new_nz] = matrix_value[el];
269+ /*
266270 if (expensive_2821_check) {
267271 // Record where the index has occurred
268272 el_in_vec[component] = num_new_nz;
269273 }
274+ */
270275 num_new_nz++;
271276 }
272277 } // Loop from_el; to_el
273278 index_set.clear ();
279+ /*
274280 if (expensive_2821_check) {
275281 // Reset el_in_vec
276282 for (HighsInt el = from_el; el < to_el; el++)
@@ -279,6 +285,7 @@ HighsStatus assessMatrix(
279285 for (HighsInt lc_ix = 0; lc_ix < vec_dim; lc_ix++)
280286 assert(el_in_vec[lc_ix] == illegal_el);
281287 }
288+ */
282289 } // Loop 0; num_vec
283290 if (num_duplicate) {
284291 highsLogUser (log_options, HighsLogType::kInfo ,
0 commit comments