From c91b8b1146f49d7f67a5edd3969360627f6b453b Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 16 Sep 2009 14:09:56 +0000 Subject: [PATCH] Minor updates to docs. Don't declare functions inline that are only used in this single file -- compilers are much better at figuring out what to inline than humans anyway, and within a single file there is no difference in external/internalness of functions. git-svn-id: https://svn.dealii.org/trunk@19463 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-35/step-35.cc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/deal.II/examples/step-35/step-35.cc b/deal.II/examples/step-35/step-35.cc index 8a5352cb67..f38ad77630 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -218,8 +218,8 @@ namespace EquationData{ // As we have chosen a completely decoupled formulation, we will not take advantage of deal.II's capabilities // to handle vector valued problems. We do, however, // want to use an interface for the equation data that is - // somehow dimension indenpendent. To be able to do that, our functions should be able to know - // on which space component we are currently working, and we should be able to have a + // somehow dimension independent. To be able to do that, our functions should be able to know + // on which spatial component we are currently working, and we should be able to have a // common interface to do that. The following class is an attempt in that direction. template class MultiComponentFunction: public Function{ @@ -285,8 +285,8 @@ namespace EquationData{ template - inline double Velocity::value( const Point &p, - const unsigned int ) const + double Velocity::value( const Point &p, + const unsigned int ) const { double return_value = 0.; static const double Um = 1.5, H = 4.1; @@ -317,8 +317,8 @@ namespace EquationData{ template - inline double Pressure::value( const Point &p, - const unsigned int ) const + double Pressure::value( const Point &p, + const unsigned int ) const { return 0.; } @@ -383,17 +383,17 @@ template class Navier_Stokes_Projection{ void Create_Triangulation( const unsigned int n_of_refines ); void Initialize(); - inline void interpolate_velocity(); - inline void diffusion_step( const bool reinit_prec ); - inline void projection_step( const bool reinit_prec ); - inline void update_pressure( const bool reinit_prec ); + void interpolate_velocity(); + void diffusion_step( const bool reinit_prec ); + void projection_step( const bool reinit_prec ); + void update_pressure( const bool reinit_prec ); private: unsigned int vel_max_its, vel_Krylov_size, vel_off_diagonals, vel_update_prec; double vel_eps, vel_diag_strength; - inline void init_velocity_matrices(); - inline void init_pressure_matrices(); - inline void init_gradient_operator(); + void init_velocity_matrices(); + void init_pressure_matrices(); + void init_gradient_operator(); typedef std_cxx1x::tuple< typename DoFHandler::active_cell_iterator, typename DoFHandler::active_cell_iterator @@ -425,7 +425,7 @@ template class Navier_Stokes_Projection{ InitGradPerTaskData &data ); void copy_gradient_local_to_global( const InitGradPerTaskData &data ); - inline void assemble_advection_term(); + void assemble_advection_term(); struct AdvectionPerTaskData{ FullMatrix local_advection; std::vector local_dof_indices; -- 2.39.5