]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid use of deprecated numbers.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 01:11:18 +0000 (01:11 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 01:11:18 +0000 (01:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@27950 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/distributed/tria.cc
deal.II/source/dofs/dof_handler_policy.cc

index 33405c73c6bcbbdca690230d5415933ce10305d6..1061c5a2d39526a58cded138062cf5fb6d5c5710 100644 (file)
@@ -991,7 +991,7 @@ namespace
                                             const types::subdomain_id_t                           my_subdomain,
                                             const std::vector<std::vector<bool> > &marked_vertices)
   {
-    if (dealii_cell->level_subdomain_id()==types::artificial_subdomain_id)
+    if (dealii_cell->level_subdomain_id()==numbers::artificial_subdomain_id)
       {
         //important: only assign the level_subdomain_id if it is a ghost cell
         // even though we could fill in all.
@@ -2710,7 +2710,7 @@ namespace parallel
                   else
                     {
                       //not our cell
-                      cell->set_level_subdomain_id(types::artificial_subdomain_id);
+                      cell->set_level_subdomain_id(numbers::artificial_subdomain_id);
                     }
                 }
             }
@@ -2762,9 +2762,9 @@ namespace parallel
                         {
                           if (cell->child(c)->level_subdomain_id()==this->locally_owned_subdomain())
                             {
-                              types::subdomain_id_t mark = types::artificial_subdomain_id;
+                              types::subdomain_id_t mark = numbers::artificial_subdomain_id;
                               mark = cell->child(0)->level_subdomain_id();
-                              Assert(mark != types::artificial_subdomain_id, ExcInternalError()); //we should know the child(0)
+                              Assert(mark != numbers::artificial_subdomain_id, ExcInternalError()); //we should know the child(0)
                               cell->set_level_subdomain_id(mark);
                               break;
                             }
index 475b14699d209c0277781e831d67aa4a8c0019e8..0f272aaa1f4a3f3e0dab510e170fda7653651c54 100644 (file)
@@ -497,7 +497,7 @@ namespace internal
 //                                               // for cell dof indices
 //              for (typename DoFHandler<dim,spacedim>::level_cell_iterator
 //                     cell = dof_handler.begin(); cell != dof_handler.end(); ++cell)
-//                if (cell->subdomain_id() != types::artificial_subdomain_id)
+//                if (cell->subdomain_id() != numbers::artificial_subdomain_id)
 //                  cell->update_cell_dof_indices_cache ();
 
           // finally restore the user flags
@@ -1196,7 +1196,7 @@ namespace internal
                     {
                       //TODO: we don't know about our children if proc 0 owns all coarse cells!
                       dealii::types::subdomain_id_t dest = dealii_cell->child(c)->level_subdomain_id();
-                      Assert(dest!=dealii::types::artificial_subdomain_id && dest!=dealii::types::invalid_subdomain_id, ExcInternalError());
+                      Assert(dest!=dealii::numbers::artificial_subdomain_id && dest!=dealii::types::invalid_subdomain_id, ExcInternalError());
                       if (dest != tria.locally_owned_subdomain())
                         send_to.insert(dest);
                     }
@@ -1322,7 +1322,7 @@ namespace internal
         {
           if (internal::p4est::quadrant_is_equal<dim>(p4est_cell, quadrant))
             {
-              Assert(dealii_cell->level_subdomain_id()!=dealii::types::artificial_subdomain_id, ExcInternalError());
+              Assert(dealii_cell->level_subdomain_id()!=dealii::numbers::artificial_subdomain_id, ExcInternalError());
               Assert(dealii_cell->level()==(int)level, ExcInternalError());
 
               // update dof indices of cell
@@ -1751,7 +1751,7 @@ namespace internal
 
               for (cell = dof_handler.begin(level); cell != endc; ++cell)
                 {
-                  if (cell->level_subdomain_id()==dealii::types::artificial_subdomain_id)
+                  if (cell->level_subdomain_id()==dealii::numbers::artificial_subdomain_id)
                     {
                       //artificial
                     }
@@ -2285,7 +2285,7 @@ namespace internal
                 typename DoFHandler<dim,spacedim>::level_cell_iterator
                 cell, endc = dof_handler.end(level);
                 for (cell = dof_handler.begin(level); cell != endc; ++cell)
-                  if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id)
+                  if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id)
                     cell->set_user_flag();
               }
 
@@ -2304,7 +2304,7 @@ namespace internal
               for (typename DoFHandler<dim,spacedim>::level_cell_iterator
                    cell = dof_handler.begin(level);
                    cell != dof_handler.end(level); ++cell)
-                if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id && cell->level_subdomain_id() != tr->locally_owned_subdomain())
+                if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id && cell->level_subdomain_id() != tr->locally_owned_subdomain())
                   for (unsigned int v=0; v<GeometryInfo<dim>::vertices_per_cell; ++v)
                     if (locally_active_vertices[cell->vertex_index(v)])
                       vertices_with_ghost_neighbors[cell->vertex_index(v)]
@@ -2339,7 +2339,7 @@ namespace internal
                 cell, endc = dof_handler.end(level);
 
                 for (cell = dof_handler.begin(level); cell != endc; ++cell)
-                  if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id)
+                  if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id)
                     {
                       local_dof_indices.resize (cell->get_fe().dofs_per_cell);
                       cell->get_mg_dof_indices (local_dof_indices);

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.