From ddbd8fb21b9427c099896175542e94e50e25234e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 11 May 2019 12:30:25 -0400 Subject: [PATCH] Use ZeroFuntion instead of PressureRightHandSide --- examples/step-43/step-43.cc | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/examples/step-43/step-43.cc b/examples/step-43/step-43.cc index 383bcc2f0f..ded8f05473 100644 --- a/examples/step-43/step-43.cc +++ b/examples/step-43/step-43.cc @@ -78,33 +78,10 @@ namespace Step43 using namespace dealii; - // @sect3{Right hand side, boundary and initial value classes} + // @sect3{Boundary and initial value classes} // The following part is taken directly from step-21 so there is no need to // repeat the descriptions found there. - template - class PressureRightHandSide : public Function - { - public: - PressureRightHandSide() - : Function(1) - {} - - virtual double value(const Point & p, - const unsigned int component = 0) const override; - }; - - - - template - double - PressureRightHandSide::value(const Point & /*p*/, - const unsigned int /*component*/) const - { - return 0; - } - - template class PressureBoundaryValues : public Function { @@ -1053,8 +1030,8 @@ namespace Step43 std::vector local_dof_indices(dofs_per_cell); - const PressureRightHandSide pressure_right_hand_side; - const PressureBoundaryValues pressure_boundary_values; + const Functions::ZeroFunction pressure_right_hand_side; + const PressureBoundaryValues pressure_boundary_values; std::vector pressure_rhs_values(n_q_points); std::vector boundary_values(n_face_q_points); -- 2.39.5