]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix tests in 64-bit mode. 1411/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 21 Aug 2015 19:37:06 +0000 (14:37 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 21 Aug 2015 19:37:06 +0000 (14:37 -0500)
Both tests did not use types::global_dof_index and therefore
failed in 64-bit mode.

tests/sharedtria/dof_01.cc
tests/sharedtria/dof_02.cc

index 4fa58f201b503ec33b904b80ed48f5777faa4d88..fd2c669f62c57f30144332e594bd5eef8645f0d4 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id: dof_handler_number_cache.cc 31761 2013-11-22 14:42:37Z heister $
 //
-// Copyright (C) 2008 - 2013 by the deal.II authors
+// Copyright (C) 2008 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -97,7 +97,7 @@ void test()
       << "n_locally_owned_dofs: " << dof_handler.n_locally_owned_dofs() << std::endl;
 
       deallog << "n_locally_owned_dofs_per_processor: ";
-      std::vector<unsigned int> v = dof_handler.n_locally_owned_dofs_per_processor();
+      std::vector<types::global_dof_index> v = dof_handler.n_locally_owned_dofs_per_processor();
       unsigned int sum = 0;
       for (unsigned int i=0;i<v.size();++i)
         {
index 7b2eb7e7a7103d814c975337ece3a1ca43932ce0..da911a1f6bb35816024ed1b79341753c573981ce 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id: dof_handler_number_cache.cc 31761 2013-11-22 14:42:37Z heister $
 //
-// Copyright (C) 2008 - 2013 by the deal.II authors
+// Copyright (C) 2008 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -99,7 +99,7 @@ void test()
         << "n_locally_owned_dofs: " << dof_handler.n_locally_owned_dofs() << std::endl;
 
       deallog << "n_locally_owned_dofs_per_processor: ";
-      std::vector<unsigned int> v = dof_handler.n_locally_owned_dofs_per_processor();
+      std::vector<types::global_dof_index> v = dof_handler.n_locally_owned_dofs_per_processor();
       unsigned int sum = 0;
       for (unsigned int i=0;i<v.size();++i)
         {

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.