From 18bcdaf3fba87b5e483bd6919cdd79be8eb054bf Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 28 Jul 2023 13:59:42 -0600 Subject: [PATCH] remove triplicate sanity checks in BsrMatrix --- sparse/src/KokkosSparse_BsrMatrix.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sparse/src/KokkosSparse_BsrMatrix.hpp b/sparse/src/KokkosSparse_BsrMatrix.hpp index b36143c14b..8b789f66f3 100644 --- a/sparse/src/KokkosSparse_BsrMatrix.hpp +++ b/sparse/src/KokkosSparse_BsrMatrix.hpp @@ -522,16 +522,6 @@ class BsrMatrix { "BsrMatrix:: annz should be a multiple of the number of entries in a " "block"); } - if (annz % (blockDim_ * blockDim_)) { - throw std::runtime_error( - "BsrMatrix:: annz should be a multiple of the number of entries in a " - "block"); - } - if (annz % (blockDim_ * blockDim_)) { - throw std::runtime_error( - "BsrMatrix:: annz should be a multiple of the number of entries in a " - "block"); - } using Coord = std::pair; // row, col using CoordComp = std::function