]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug while compiling with 64bit indices.
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 26 Aug 2013 19:08:38 +0000 (19:08 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 26 Aug 2013 19:08:38 +0000 (19:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@30497 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vector_tools.templates.h

index 39b16c8cf12a5a22346c9cf4dad6fab8555cc31e..0a906013a526e3f5a99a827006d22912f944d286 100644 (file)
@@ -4729,8 +4729,9 @@ namespace VectorTools
     // iterate over the list of all vector components we found and see if we
     // can find constrained ones
     unsigned int n_total_constraints_found = 0;
-    for (typename std::set<std_cxx1x::array<unsigned int,dim>,PointComparator<dim> >::
-           const_iterator it=vector_dofs.begin(); it!=vector_dofs.end(); ++it)
+    for (typename std::set<std_cxx1x::array<types::global_dof_index,dim>,
+           PointComparator<dim> >::const_iterator it=vector_dofs.begin(); 
+           it!=vector_dofs.end(); ++it)
       {
         unsigned int n_constraints = 0;
         bool is_constrained[dim];
@@ -4769,7 +4770,7 @@ namespace VectorTools
                   normal[d] = 1.;
                 }
             AssertIndexRange(constrained_index, dim);
-            const std::vector<std::pair<unsigned int, double> >* constrained
+            const std::vector<std::pair<types::global_dof_index, double> >* constrained
               = no_normal_flux_constraints.get_constraint_entries((*it)[constrained_index]);
             // find components to which this index is constrained to
             Assert(constrained != 0, ExcInternalError());

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.