Skip to content

Commit

Permalink
Fixup: remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Dec 9, 2024
1 parent a3947dd commit ab7917c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/atlas/linalg/sparse/MakeSparseMatrixStorageEckit.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void host_copy_eckit (const InputT* input_data, array::Array& output) {
inline SparseMatrixStorage make_sparse_matrix_storage(eckit::linalg::SparseMatrix&& m) {
using Index = eckit::linalg::Index;
using Value = eckit::linalg::Scalar;
std::cout << "make_sparse_matrix_storage move" << std::endl;

std::size_t rows = m.rows();
std::size_t cols = m.cols();
Expand All @@ -58,8 +57,6 @@ inline SparseMatrixStorage make_sparse_matrix_storage(eckit::linalg::SparseMatri

template< typename value_type, typename index_type = eckit::linalg::Index>
SparseMatrixStorage make_sparse_matrix_storage(eckit::linalg::SparseMatrix&& m) {
std::cout << "make_sparse_matrix_storage move or convert" << std::endl;

if (std::is_same_v<eckit::linalg::Scalar, value_type> && std::is_same_v<eckit::linalg::Index, index_type>) {
return make_sparse_matrix_storage(std::move(m));
}
Expand Down Expand Up @@ -87,7 +84,6 @@ inline SparseMatrixStorage make_sparse_matrix_storage(const eckit::linalg::Spars
using Index = eckit::linalg::Index;
using Value = eckit::linalg::Scalar;

std::cout << "make_sparse_matrix_storage copy" << std::endl;
std::size_t rows = m.rows();
std::size_t cols = m.cols();
std::size_t nnz = m.nonZeros();
Expand All @@ -109,7 +105,6 @@ inline SparseMatrixStorage make_sparse_matrix_storage(const eckit::linalg::Spars

template< typename value_type, typename index_type = eckit::linalg::Index>
SparseMatrixStorage make_sparse_matrix_storage(const eckit::linalg::SparseMatrix& m) {
std::cout << "make_sparse_matrix_storage copy and convert" << std::endl;

std::size_t rows = m.rows();
std::size_t cols = m.cols();
Expand Down
4 changes: 0 additions & 4 deletions src/atlas/linalg/sparse/MakeSparseMatrixStorageEigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void host_copy_eigen (const InputT* input_data, atlas::array::Array& output) {

template <typename Value, typename Index>
SparseMatrixStorage make_sparse_matrix_storage(Eigen::SparseMatrix<Value, Eigen::RowMajor, Index>&& m) {
std::cout << "make_sparse_matrix_storage move" << std::endl;

std::size_t rows = m.rows();
std::size_t cols = m.cols();
Expand All @@ -64,7 +63,6 @@ SparseMatrixStorage make_sparse_matrix_storage(Eigen::SparseMatrix<Value, Eigen:
template< typename value_type, typename index_type = eckit::linalg::Index, typename Value, typename Index,
typename = std::enable_if_t < !std::is_same_v<value_type,Value>>>
SparseMatrixStorage make_sparse_matrix_storage(Eigen::SparseMatrix<Value, Eigen::RowMajor, Index>&& m) {
std::cout << "make_sparse_matrix_storage move or convert" << std::endl;

if (std::is_same_v<Value, value_type> && std::is_same_v<Index, index_type>) {
return make_sparse_matrix_storage(std::move(m));
Expand All @@ -91,7 +89,6 @@ SparseMatrixStorage make_sparse_matrix_storage(Eigen::SparseMatrix<Value, Eigen:

template <typename Value, typename Index>
SparseMatrixStorage make_sparse_matrix_storage(const Eigen::SparseMatrix<Value, Eigen::RowMajor, Index>& m) {
std::cout << "make_sparse_matrix_storage copy" << std::endl;
std::size_t rows = m.rows();
std::size_t cols = m.cols();
std::size_t nnz = m.nonZeros();
Expand All @@ -114,7 +111,6 @@ SparseMatrixStorage make_sparse_matrix_storage(const Eigen::SparseMatrix<Value,
template< typename value_type, typename index_type = eckit::linalg::Index, typename Value, typename Index,
typename = std::enable_if_t < !std::is_same_v<value_type,Value>>>
SparseMatrixStorage make_sparse_matrix_storage(const Eigen::SparseMatrix<Value, Eigen::RowMajor, Index>& m) {
std::cout << "make_sparse_matrix_storage copy and convert" << std::endl;

std::size_t rows = m.rows();
std::size_t cols = m.cols();
Expand Down

0 comments on commit ab7917c

Please sign in to comment.