Skip to content

Commit

Permalink
Remove explicit deleter
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Dec 1, 2023
1 parent b535429 commit 6b31005
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/ddc/kernels/splines/matrix_sparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ class Matrix_Sparse : public Matrix

Kokkos::View<double*, Kokkos::HostSpace> m_data;

std::unique_ptr<
gko::solver::Bicgstab<gko::default_precision>::Factory,
std::default_delete<gko::solver::Bicgstab<gko::default_precision>::Factory>>
m_solver_factory;
std::unique_ptr<gko::solver::Bicgstab<gko::default_precision>::Factory> m_solver_factory;

int m_cols_per_par_chunk; // Maximum number of columns of B to be passed to a Ginkgo solver

Expand Down Expand Up @@ -166,7 +163,7 @@ class Matrix_Sparse : public Matrix
.on(gko_exec);
}

std::unique_ptr<gko::matrix::Dense<>, std::default_delete<gko::matrix::Dense<>>> to_gko_vec(
std::unique_ptr<gko::matrix::Dense<>> to_gko_vec(
double* vec_ptr,
size_t n,
size_t n_equations,
Expand All @@ -180,7 +177,7 @@ class Matrix_Sparse : public Matrix
return v;
}

std::unique_ptr<gko::matrix::Csr<>, std::default_delete<gko::matrix::Csr<>>> to_gko_mat(
std::unique_ptr<gko::matrix::Csr<>> to_gko_mat(
double* mat_ptr,
size_t n_nonzero_rows,
size_t n_nonzeros,
Expand Down

0 comments on commit 6b31005

Please sign in to comment.