]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an explict cast.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 10 Apr 2012 08:33:48 +0000 (08:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 10 Apr 2012 08:33:48 +0000 (08:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@25400 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_tools.cc

index 5d39c1f1f7e00a3ae9b50acc08aa9065d52a12b0..8c6cea3de26ade3ae70fb1622945ea6643ba7267 100644 (file)
@@ -1954,7 +1954,7 @@ namespace GridTools
                     }
 
                   c_data.vertices[j] = map_vert_index[v_index];
-                  c_data.material_id = face->boundary_indicator();
+                  c_data.material_id = static_cast<types::material_id_t>(face->boundary_indicator());
                 }
 
               cells.push_back(c_data);

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.