From 553c3fce4dca1710e6caa4c777720f3c3a1c8ada Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 30 Mar 2000 13:19:08 +0000 Subject: [PATCH] Reformat. git-svn-id: https://svn.dealii.org/trunk@2647 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/function.h | 20 +++++++++++++------- deal.II/base/include/base/function_lib.h | 7 +++++++ deal.II/base/include/base/function_time.h | 6 +++++- deal.II/base/include/base/job_identifier.h | 17 +++++++++-------- deal.II/base/include/base/logstream.h | 10 ++++------ 5 files changed, 38 insertions(+), 22 deletions(-) diff --git a/deal.II/base/include/base/function.h b/deal.II/base/include/base/function.h index d9e0f3f7eb..f15883c6f7 100644 --- a/deal.II/base/include/base/function.h +++ b/deal.II/base/include/base/function.h @@ -225,27 +225,31 @@ class Function : public FunctionTime, vector > > &gradients) const; /** - * Compute the Laplacian of a given component at point #p#. + * Compute the Laplacian of a + * given component at point #p#. */ virtual double laplacian (const Point &p, const unsigned int component = 0) const; /** - * Compute the Laplacian of all components at point #p# - * and store them in #values#. + * Compute the Laplacian of all + * components at point #p# and + * store them in #values#. */ virtual void vector_laplacian (const Point &p, Vector &values) const; /** - * Compute the Laplacian of one component at a set of points. + * Compute the Laplacian of one + * component at a set of points. */ virtual void laplacian_list (const vector > &points, vector &values, const unsigned int component = 0) const; /** - * Compute the Laplacians of all components at a set of points. + * Compute the Laplacians of all + * components at a set of points. */ virtual void vector_laplacian_list (const vector > &points, vector > &values) const; @@ -284,7 +288,8 @@ class Function : public FunctionTime, * @author Wolfgang Bangerth, 1998, 1999 */ template -class ZeroFunction : public Function { +class ZeroFunction : public Function +{ public: /** * Constructor. The number of @@ -409,7 +414,8 @@ class ZeroFunction : public Function { * @author Wolfgang Bangerth, 1998, 1999 */ template -class ConstantFunction : public ZeroFunction { +class ConstantFunction : public ZeroFunction +{ public: /** * Constructor; takes the constant function diff --git a/deal.II/base/include/base/function_lib.h b/deal.II/base/include/base/function_lib.h index c60b0fa871..7e5941e80f 100644 --- a/deal.II/base/include/base/function_lib.h +++ b/deal.II/base/include/base/function_lib.h @@ -16,6 +16,8 @@ #include + + /** * d-quadratic pillow on the unit hypercube. * @@ -71,6 +73,8 @@ class PillowFunction : public Function const unsigned int component = 0) const; }; + + /** * Cosine-shaped pillow function. * This is another function with zero boundary values on $[-1,1]^d$. In the interior @@ -122,6 +126,7 @@ class CosineFunction : public Function }; + /** * Singularity on the L-shaped domain in 2D. * @author Guido Kanschat, 1999 @@ -169,6 +174,8 @@ class LSingularityFunction : public Function<2> const unsigned int component = 0) const; }; + + /** * Singularity on the slit domain in 2D. * @author Guido Kanschat, 1999 diff --git a/deal.II/base/include/base/function_time.h b/deal.II/base/include/base/function_time.h index 9f8273802e..8a8e8b13ba 100644 --- a/deal.II/base/include/base/function_time.h +++ b/deal.II/base/include/base/function_time.h @@ -57,7 +57,8 @@ * * @author Wolfgang Bangerth, Guido Kanschat, 1998, 1999 */ -class FunctionTime { +class FunctionTime +{ public: /** * Constructor. May take an initial vakue @@ -95,6 +96,8 @@ class FunctionTime { double time; }; + + /*------------------------------ Inline functions ------------------------------*/ inline double @@ -103,5 +106,6 @@ FunctionTime::get_time () const return time; }; + #endif diff --git a/deal.II/base/include/base/job_identifier.h b/deal.II/base/include/base/job_identifier.h index a856356181..3aa60ce7a0 100644 --- a/deal.II/base/include/base/job_identifier.h +++ b/deal.II/base/include/base/job_identifier.h @@ -25,16 +25,17 @@ */ class JobIdentifier { -public: - JobIdentifier(); - ~JobIdentifier(); - - static const char* program_id(); - const string operator () ()const; -private: - string id; + public: + JobIdentifier(); + ~JobIdentifier(); + + static const char* program_id(); + const string operator () ()const; + private: + string id; }; + /*------------------------------ Inline functions ------------------------------*/ extern JobIdentifier dealjobid; diff --git a/deal.II/base/include/base/logstream.h b/deal.II/base/include/base/logstream.h index 2d887c41a0..7b4ce1a9ad 100644 --- a/deal.II/base/include/base/logstream.h +++ b/deal.II/base/include/base/logstream.h @@ -42,7 +42,7 @@ *
  • #deallog.pop()# when leaving that stage entered with #push#. * * - * @author Guido Kanschat, 1999 + * @author Guido Kanschat, Wolfgang Bangerth, 1999 */ class LogStream { @@ -107,6 +107,7 @@ class LogStream * Flag for printing execution time. */ bool print_utime; + public: /** * Standard constructor, since we @@ -222,22 +223,19 @@ class LogStream */ DeclException0 (ExcNoFileStreamGiven); -private: + private: /** * Print head of line. This prints * optional time information and * the contents of the prefix stack. */ - void print_line_head(); + void print_line_head(); }; /* ----------------------------- Inline functions and templates ---------------- */ -// sorry for the weird following declaration spanning 5 lines, but -// doc++ gets confused if we be more compact :-( - template inline LogStream & -- 2.39.5