]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix integrators/laplacian_02 for 64-bit indices 3847/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 24 Jan 2017 21:52:26 +0000 (22:52 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 24 Jan 2017 21:52:26 +0000 (22:52 +0100)
tests/integrators/laplacian_02.cc

index 4d9a8782ead8aadd5318a10df916df72875c71a1..1b633ad3910ffe55cd67acfb3a611e529e3e7dc7 100644 (file)
@@ -49,7 +49,7 @@ void test_boundary(const FiniteElement<dim> &fe, bool diff=false)
 
   FullMatrix<double> M(fe.dofs_per_cell);
   FullMatrix<double> Mglobal(dof.n_dofs());
-  std::vector<unsigned int> indices(fe.dofs_per_cell);
+  std::vector<types::global_dof_index> indices(fe.dofs_per_cell);
 
   typename DoFHandler<dim>::active_cell_iterator cell = dof.begin_active();
   cell->get_dof_indices(indices);
@@ -87,8 +87,8 @@ void test_face(const FiniteElement<dim> &fe, bool diff=false)
   FullMatrix<double> M21(fe.dofs_per_cell);
   FullMatrix<double> M22(fe.dofs_per_cell);
   FullMatrix<double> Mglobal(dof.n_dofs());
-  std::vector<unsigned int> indices1(fe.dofs_per_cell);
-  std::vector<unsigned int> indices2(fe.dofs_per_cell);
+  std::vector<types::global_dof_index> indices1(fe.dofs_per_cell);
+  std::vector<types::global_dof_index> indices2(fe.dofs_per_cell);
 
   typename DoFHandler<dim>::active_cell_iterator cell1 = dof.begin_active();
   typename DoFHandler<dim>::active_cell_iterator cell2 = ++dof.begin_active();

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.