]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one more place.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Mar 2013 00:30:09 +0000 (00:30 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Mar 2013 00:30:09 +0000 (00:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29034 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/trilinos_sparse_matrix.cc

index e19e1d8a612840ef2ca8a8044eedde420028d330..909952bd229bc7803d9f360de5db24c67405e792 100644 (file)
@@ -580,6 +580,15 @@ namespace TrilinosWrappers
 
     const size_type n_rows = dealii_sparse_matrix.m();
 
+#ifndef DEAL_II_USE_LARGE_INDEX_TYPE
+    Assert (static_cast<size_type>(input_row_map.NumGlobalElements()) == n_rows,
+            ExcDimensionMismatch (input_row_map.NumGlobalElements(),
+                                  n_rows));
+#else
+    Assert (static_cast<size_type>(input_row_map.NumGlobalElements64()) == n_rows,
+            ExcDimensionMismatch (input_row_map.NumGlobalElements64(),
+                                  n_rows));
+#endif
     Assert (input_row_map.NumGlobalElements() == (TrilinosWrappers::types::int_type)n_rows,
             ExcDimensionMismatch (input_row_map.NumGlobalElements(),
                                   n_rows));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.