Skip to content

Commit e795095

Browse files
roystgnrjwpeterson
authored andcommitted
Fix an off-by-one error in HDF5 matrix reads
I accidentally missed an edit when patterning this code for 0-based matrix files off the 1-based matlab matrix reader.
1 parent 741c730 commit e795095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numerics/sparse_matrix.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ void SparseMatrix<T>::read_coreform_hdf5(const std::string & filename,
755755
current_off_diagonal_nonzeros = 0;
756756
}
757757

758-
while (current_row >= (new_row_stops[current_proc]+1))
758+
while (current_row >= new_row_stops[current_proc])
759759
++current_proc;
760760

761761
// 0-based indexing in file

0 commit comments

Comments
 (0)