diff --git a/examples/r_KLU_KLU.cpp b/examples/r_KLU_KLU.cpp index 8f0ee767..5f11759e 100644 --- a/examples/r_KLU_KLU.cpp +++ b/examples/r_KLU_KLU.cpp @@ -117,14 +117,9 @@ int main(int argc, char* argv[]) rhs_file.close(); // Now convert to CSR. - if (i < 2) { - A->updateFromCoo(A_coo, ReSolve::memory::HOST); - vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST); - vec_rhs->setDataUpdated(ReSolve::memory::HOST); - } else { - A->updateFromCoo(A_coo, ReSolve::memory::HOST); - vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST); - } + A->updateFromCoo(A_coo, ReSolve::memory::HOST); + vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST); + vec_rhs->setDataUpdated(ReSolve::memory::HOST); std::cout << "COO to CSR completed. Expanded NNZ: " << A->getNnzExpanded() << std::endl; // Now call direct solver int status; diff --git a/examples/r_LUSOL_LUSOL.cpp b/examples/r_LUSOL_LUSOL.cpp index 2c89389d..df79f9f7 100644 --- a/examples/r_LUSOL_LUSOL.cpp +++ b/examples/r_LUSOL_LUSOL.cpp @@ -106,9 +106,6 @@ int main(int argc, char* argv[]) bool output_existed = std::filesystem::exists(std::filesystem::path("./lusol_output.csv")); std::fstream output("./lusol_output.csv", std::ios::out | std::ios::app); - // TODO: add this to KLU test code - // TODO: remove KLU refactorization for a fair comparison - if (!output_existed) { output << "matrix_file_path,rhs_file_path,system,total_systems,n_rows,n_columns,initial_nnz,cleaned_nnz,ns_factorization,ns_solving,residual_2_norm,matrix_inf_norm,residual_inf_norm,solution_inf_norm,residual_scaled_norm,l_nnz,l_elements,u_nnz,u_elements\n"; }