From d649275596714f5743267afbd1463722d0ec0300 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 20 Mar 2013 03:58:20 +0000 Subject: [PATCH] More renaming. git-svn-id: https://svn.dealii.org/trunk@28951 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-26/step-26.cc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/deal.II/examples/step-26/step-26.cc b/deal.II/examples/step-26/step-26.cc index 219ed02b35..ab471df4ed 100644 --- a/deal.II/examples/step-26/step-26.cc +++ b/deal.II/examples/step-26/step-26.cc @@ -120,14 +120,14 @@ namespace Step26 } template - class BoundaryValuesU: public Function + class BoundaryValues: public Function { public: - BoundaryValuesU() : + BoundaryValues() : Function() { } - virtual ~BoundaryValuesU() + virtual ~BoundaryValues() { } virtual double value(const Point &p, @@ -135,7 +135,7 @@ namespace Step26 }; template - double BoundaryValuesU::value(const Point &/*p*/, + double BoundaryValues::value(const Point &/*p*/, const unsigned int component) const { Assert(component == 0, ExcInternalError()); @@ -258,17 +258,21 @@ namespace Step26 system_rhs += forcing_terms; { - BoundaryValuesU boundary_values_u_function; - boundary_values_u_function.set_time(time); + BoundaryValues boundary_values_function; + boundary_values_function.set_time(time); std::map 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(); -- 2.39.5