]> https://gitweb.dealii.org/ - dealii.git/commitdiff
run indent again on changes
authorSpencer Patty <srobertp@gmail.com>
Fri, 5 Feb 2016 18:49:26 +0000 (12:49 -0600)
committerSpencer Patty <srobertp@gmail.com>
Fri, 5 Feb 2016 18:49:26 +0000 (12:49 -0600)
source/grid/grid_tools.cc

index 6f4e101f332428d7f08fea2732fc09fe3b1b2b14..336c66159db58e328d0b52f7008abb90008440ac 100644 (file)
@@ -3070,6 +3070,11 @@ next_cell:
     std::vector<types::global_dof_index> local_face_dof_indices;
     std::vector<types::global_dof_index> local_line_dof_indices;
 
+    // a place to save the dof_handler user flags and restore them later
+    // to maintain const of dof_handler.
+    std::vector<bool> user_flags;
+
+
     // in 3d, we need pointers from active lines to the
     // active parent lines, so we construct it as needed.
     std::map<typename MeshType::active_line_iterator, typename MeshType::line_iterator > lines_to_parent_lines_map;
@@ -3077,7 +3082,6 @@ next_cell:
       {
 
         // save user flags as they will be modified and then later restored
-        std::vector<bool> user_flags;
         dof_handler.get_triangulation().save_user_flags(user_flags);
         const_cast<dealii::Triangulation<MeshType::dimension,MeshType::space_dimension> &>(dof_handler.get_triangulation()).clear_user_flags ();
 

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.