Skip to content

Commit

Permalink
Fixes to failing unit tests with complex types.
Browse files Browse the repository at this point in the history
  • Loading branch information
mndevec committed Aug 3, 2017
1 parent 5caf428 commit d231963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/common/KokkosKernels_IOUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ void kk_diagonally_dominant_sparseMatrix_generate(
nnz = rowPtr[nrows];
values = new ScalarType[nnz];
colInd = new OrdinalType[nnz];
const ScalarType temp = 10;
for(OrdinalType row=0;row<nrows;row++)
{
ScalarType total_values = 0;
Expand All @@ -182,7 +183,8 @@ void kk_diagonally_dominant_sparseMatrix_generate(
}

colInd[rowPtr[row+1] - 1]= row;
values[rowPtr[row+1] - 1] = total_values * 10;

values[rowPtr[row+1] - 1] = total_values * temp;
}
}

Expand Down
1 change: 0 additions & 1 deletion unit_test/sparse/Test_Sparse_gauss_seidel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ void test_gauss_seidel(GSAlgorithm gs_algorithm,
typedef typename graph_t::entries_type lno_nnz_view_t;
typedef typename graph_t::entries_type::non_const_type color_view_t;
typedef typename crsMat_t::values_type::non_const_type scalar_view_t;
typedef typename lno_view_t::non_const_value_type size_type;

lno_t numCols = numRows;
crsMat_t input_mat = KokkosKernels::Impl::kk_generate_diagonally_dominant_sparse_matrix<crsMat_t>(numRows,numCols,nnz,row_size_variance, bandwidth);
Expand Down

0 comments on commit d231963

Please sign in to comment.