File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ namespace ReSolve
159159 D_row_ptr[i + 1 ] = 1 + D_row_ptr[i];
160160 }
161161 D_row_ptr[n - 1 ] = D_row_ptr[n - 2 ];
162- D_row_ptr[n] = D_row_ptr[n - 1 ];
162+ D_row_ptr[n] = D_row_ptr[n - 1 ];
163163
164164 matrix::Csr* A = new matrix::Csr (n, n, nnz);
165165 matrix::Csr* B = new matrix::Csr (n, n, nnz);
@@ -222,14 +222,16 @@ namespace ReSolve
222222 std::cerr << " Test failed: E[" << i << " ][" << i + 1 << " ] = " << E->getValues (memory::HOST)[j] << " , expected: " << (i + 2 ) << " \n " ;
223223 status *= false ;
224224 }
225- if (i < n - 1 ) j++;
225+ if (i < n - 1 )
226+ j++;
226227
227228 if (i < n - 2 && fabs (E->getValues (memory::HOST)[j] - (1.0 )) > tol)
228229 {
229230 std::cerr << " Test failed: E[" << i << " ][" << i + 2 << " ] = " << E->getValues (memory::HOST)[j] << " , expected: " << (1.0 ) << " \n " ;
230231 status *= false ;
231232 }
232- if (i < n - 2 ) j++;
233+ if (i < n - 2 )
234+ j++;
233235 }
234236
235237 delete[] A_row_ptr;
You can’t perform that action at this time.
0 commit comments