From: Daniel Arndt Date: Sat, 11 May 2019 16:30:25 +0000 (-0400) Subject: Use ZeroFuntion instead of PressureRightHandSide X-Git-Tag: v9.1.0-rc1~62^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddbd8fb21b9427c099896175542e94e50e25234e;p=dealii.git Use ZeroFuntion instead of PressureRightHandSide --- 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);