]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug when using 64bit indices.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jul 2014 17:06:38 +0000 (17:06 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jul 2014 17:06:38 +0000 (17:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@33137 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/trilinos_sparsity_pattern.cc

index a9991e2666a4d8062495d0b8ac8aa462a734ce13..66b274e1a2ebf623cae7b6e0d50899bd6bd18abe 100644 (file)
@@ -712,7 +712,8 @@ namespace TrilinosWrappers
             nonlocal_graph->RowMap().NumMyElements() > 0)
           {
             // insert dummy element
-            TrilinosWrappers::types::int_type row = nonlocal_graph->RowMap().MyGID(0);
+            TrilinosWrappers::types::int_type row = nonlocal_graph->RowMap().MyGID(
+                static_cast<TrilinosWrappers::types::int_type> (0));
             nonlocal_graph->InsertGlobalIndices(row, 1, &row);
           }
         Assert(nonlocal_graph->IndicesAreGlobal() == true,

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.