message: fix sellp read
diff: @@ -76,6 +76,12 @@ size_type calculate_total_cols(const matrix_data<ValueType, IndexType> &data,
  IndexType current_slice = 0;
  size_type total_cols = 0;
  for (const auto &elem : data.nonzeros) {
  + if (elem.row != current_row) {
  + current_row = elem.row;
  + slice_lengths[current_slice] =
  + max(slice_lengths[current_slice], nonzeros_per_row);
  + nonzeros_per_row = 0;
  + }
  if (elem.row / slice_size != current_slice) {
  slice_lengths[current_slice] =
  stride_factor *
  @@ -83,12 +89,6 @@ size_type calculate_total_cols(const matrix_data<ValueType, IndexType> &data,
  total_cols += slice_lengths[current_slice];
  current_slice = elem.row / slice_size;
  }
  - if (elem.row != current_row) {
  - current_row = elem.row;
  - slice_lengths[current_slice] =
  - max(slice_lengths[current_slice], nonzeros_per_row);
  - nonzeros_per_row = 0;
  - }
  nonzeros_per_row += (elem.value != zero<ValueType>());
  }
  slice_lengths[current_slice] =
  