From: David Wells Date: Fri, 24 Jul 2015 15:35:34 +0000 (-0400) Subject: Remove unneeded friend declarations in step-14. X-Git-Tag: v8.4.0-rc2~644^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd203ec8304eef7208a816d385693b3fffe702c8;p=dealii.git Remove unneeded friend declarations in step-14. --- 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