]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do conversion of iterators right, following Timo's patches today.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 18 Jul 2013 01:47:00 +0000 (01:47 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 18 Jul 2013 01:47:00 +0000 (01:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@30030 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/meshworker/dof_info.h

index 76f1679ce93af80e0578e08c141fbef130cd94fa..97f77841f87f65626b150500f32c786dbd56bca7 100644 (file)
@@ -313,7 +313,7 @@ namespace MeshWorker
     get_indices(c);
     level_cell = c->is_level_cell();
 
-    cell = static_cast<typename Triangulation<dim,spacedim>::cell_iterator> (c);
+    cell = typename Triangulation<dim,spacedim>::cell_iterator(*c);
     face_number = deal_II_numbers::invalid_unsigned_int;
     sub_number = deal_II_numbers::invalid_unsigned_int;
     if (block_info)
@@ -345,11 +345,11 @@ namespace MeshWorker
     const unsigned int face_no)
   {
     if ((cell.state() != IteratorState::valid)
-        ||  cell != static_cast<typename Triangulation<dim>::cell_iterator> (c))
+        ||  cell != typename Triangulation<dim>::cell_iterator(*c))
       get_indices(c);
     level_cell = c->is_level_cell();
 
-    cell = static_cast<typename Triangulation<dim>::cell_iterator> (c);
+    cell = typename Triangulation<dim>::cell_iterator(*c);
     set_face(f,face_no);
 
     if (block_info)

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.