]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a missing 'const'. 16942/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Apr 2024 15:19:11 +0000 (20:49 +0530)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Apr 2024 15:19:11 +0000 (20:49 +0530)
examples/step-2/step-2.cc

index 6656ebbea6ad14d0a22c37295cb46fe7f875c31a..185b0893973364b0c81e51f17c6237b80cc1e3ba 100644 (file)
@@ -131,7 +131,7 @@ void make_grid(Triangulation<2> &triangulation)
 void write_dof_locations(const DoFHandler<2> &dof_handler,
                          const std::string   &filename)
 {
-  std::map<types::global_dof_index, Point<2>> dof_location_map =
+  const std::map<types::global_dof_index, Point<2>> dof_location_map =
     DoFTools::map_dofs_to_support_points(MappingQ1<2>(), dof_handler);
 
   std::ofstream dof_location_file(filename);

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.