]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use correct type for dof index, also fixes a warning when compiling with clang
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 6 Jun 2013 10:35:05 +0000 (10:35 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 6 Jun 2013 10:35:05 +0000 (10:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@29780 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index b28d6f65e148ab73b27f9ec88231ce48d82662e3..6e03ea1eec6ce4134fe0cdd75547f20f6812df82 100644 (file)
@@ -594,7 +594,7 @@ namespace internal
                 (i->get_finest_level() >= level))
               for (unsigned int d=0; d<dof_handler.get_fe().dofs_per_vertex; ++d)
                 {
-                  unsigned int idx = i->get_index (level, d);
+                  dealii::types::global_dof_index idx = i->get_index (level, d);
                   if (idx != DoFHandler<1>::invalid_dof_index)
                     i->set_index (level, d,
                                   (indices.n_elements() == 0)?
@@ -739,7 +739,7 @@ namespace internal
                     {
                       for (unsigned int d=0; d<dof_handler.get_fe().dofs_per_line; ++d)
                         {
-                          unsigned int idx = cell->line(l)->mg_dof_index(level, d);
+                          dealii::types::global_dof_index idx = cell->line(l)->mg_dof_index(level, d);
                           if (idx != DoFHandler<1>::invalid_dof_index)
                             cell->line(l)->set_mg_dof_index (level, d, ((indices.n_elements() == 0) ?
                                                                         new_numbers[idx] :

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.