]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make more variables const. Rename to match common coding style.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 12 Apr 2009 04:30:39 +0000 (04:30 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 12 Apr 2009 04:30:39 +0000 (04:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@18594 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-34/step-34.cc

index 9737b95c3a8850cff90005f3f5933230d4862d78..2098c910908266a5f6798923ed96290f72d58d37 100644 (file)
@@ -912,15 +912,15 @@ void BEMProblem<dim>::compute_exterior_solution() {
             }
         }
     }
-    DataOut<dim, DoFHandler<dim> > dataout;
+    DataOut<dim, DoFHandler<dim> > data_out;
     
-    dataout.attach_dof_handler(external_dh);
-    dataout.add_data_vector(external_phi, "external_phi");
-    dataout.build_patches();
+    data_out.attach_dof_handler(external_dh);
+    data_out.add_data_vector(external_phi, "external_phi");
+    data_out.build_patches();
     
-    std::string filename = Utilities::int_to_string(dim) + "d_external.vtk";
+    const std::string filename = Utilities::int_to_string(dim) + "d_external.vtk";
     std::ofstream file(filename.c_str());
-    dataout.write_vtk(file);
+    data_out.write_vtk(file);
 }
 
 

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.