]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More renaming.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 03:58:20 +0000 (03:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 03:58:20 +0000 (03:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@28951 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 219ed02b3569063ed7603dd087f3a1bf5a523c63..ab471df4ed35154eaff7a5ce5487bf66e7813704 100644 (file)
@@ -120,14 +120,14 @@ namespace Step26
   }
 
   template<int dim>
-  class BoundaryValuesU: public Function<dim>
+  class BoundaryValues: public Function<dim>
   {
   public:
-    BoundaryValuesU() :
+    BoundaryValues() :
       Function<dim>()
     {
     }
-    virtual ~BoundaryValuesU()
+    virtual ~BoundaryValues()
     {
     }
     virtual double value(const Point<dim> &p,
@@ -135,7 +135,7 @@ namespace Step26
   };
 
   template<int dim>
-  double BoundaryValuesU<dim>::value(const Point<dim> &/*p*/,
+  double BoundaryValues<dim>::value(const Point<dim> &/*p*/,
                                      const unsigned int component) const
   {
     Assert(component == 0, ExcInternalError());
@@ -258,17 +258,21 @@ namespace Step26
         system_rhs += forcing_terms;
 
         {
-          BoundaryValuesU<dim> boundary_values_u_function;
-          boundary_values_u_function.set_time(time);
+          BoundaryValues<dim> boundary_values_function;
+          boundary_values_function.set_time(time);
 
           std::map<unsigned int, double> boundary_values;
-          VectorTools::interpolate_boundary_values(dof_handler, 0,
-                                                   boundary_values_u_function, boundary_values);
+          VectorTools::interpolate_boundary_values(dof_handler,
+                                                  0,
+                                                   boundary_values_function,
+                                                  boundary_values);
 
           system_matrix.copy_from(mass_matrix);
           system_matrix.add(theta * time_step, laplace_matrix);
-          MatrixTools::apply_boundary_values(boundary_values, system_matrix,
-                                             solution, system_rhs);
+          MatrixTools::apply_boundary_values(boundary_values,
+                                            system_matrix,
+                                             solution,
+                                            system_rhs);
         }
         solve_u();
 

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.