From dd203ec8304eef7208a816d385693b3fffe702c8 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 24 Jul 2015 11:35:34 -0400 Subject: [PATCH] Remove unneeded friend declarations in step-14. --- examples/step-14/step-14.cc | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/examples/step-14/step-14.cc b/examples/step-14/step-14.cc index 041166595d..8edcbcf653 100644 --- a/examples/step-14/step-14.cc +++ b/examples/step-14/step-14.cc @@ -361,12 +361,6 @@ namespace Step14 // differences to the previous program. namespace LaplaceSolver { - // Before everything else, forward-declare one class that we will have - // later, since we will want to make it a friend of some of the classes - // that follow, which requires the class to be known: - template class WeightedResidual; - - // @sect4{The Laplace solver base class} // This class is almost unchanged, with the exception that it declares two @@ -448,10 +442,11 @@ namespace Step14 unsigned int n_dofs () const; - protected: const SmartPointer > fe; const SmartPointer > quadrature; const SmartPointer > face_quadrature; + + protected: DoFHandler dof_handler; Vector solution; const SmartPointer > boundary_values; @@ -806,11 +801,10 @@ namespace Step14 virtual void output_solution () const; - protected: const SmartPointer > rhs_function; - virtual void assemble_rhs (Vector &rhs) const; - friend class WeightedResidual; + protected: + virtual void assemble_rhs (Vector &rhs) const; }; @@ -1830,8 +1824,6 @@ namespace Step14 virtual void assemble_rhs (Vector &rhs) const; static const ZeroFunction boundary_values; - - friend class WeightedResidual; }; template -- 2.39.5