From: heister Date: Thu, 25 Oct 2012 14:10:42 +0000 (+0000) Subject: Catch adding NaN into a Trilinos SparseMatrix in all cases (in debug mode). X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40ca1eb2754d472f0aa8b70f100ae7d1f517e653;p=dealii-svn.git 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 --- 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