From 42f7f7f7571f507298f4da8e5ebdb6e0628d1233 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 25 Oct 2012 14:10:42 +0000 Subject: [PATCH] Catch adding NaN into a Trilinos SparseMatrix in all cases (in debug mode). git-svn-id: https://svn.dealii.org/trunk@27201 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_sparse_matrix.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deal.II/include/deal.II/lac/trilinos_sparse_matrix.h b/deal.II/include/deal.II/lac/trilinos_sparse_matrix.h index dad014f8ac..6cae9dc445 100644 --- a/deal.II/include/deal.II/lac/trilinos_sparse_matrix.h +++ b/deal.II/include/deal.II/lac/trilinos_sparse_matrix.h @@ -2957,6 +2957,10 @@ namespace TrilinosWrappers col_index_ptr = (int*)col_indices; col_value_ptr = values; n_columns = n_cols; +#ifdef DEBUG + for (unsigned int j=0; j