From c04a9ce532a389de2680a01dd12526e1ed33570a Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 23 Dec 1999 11:09:31 +0000 Subject: [PATCH] update. git-svn-id: https://svn.dealii.org/trunk@2119 0785d39b-7218-0410-832d-ea1e28bc413d --- .../examples/step-by-step/step-4/step-4.cc | 19 ++++++++++--------- deal.II/examples/step-4/step-4.cc | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc index 1e09267f8e..74ec87d055 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-4/step-4.cc @@ -128,7 +128,7 @@ class RightHandSide : public Function { public: virtual double value (const Point &p, - const unsigned int component) const; + const unsigned int component = 0) const; }; @@ -138,7 +138,7 @@ class BoundaryValues : public Function { public: virtual double value (const Point &p, - const unsigned int component) const; + const unsigned int component = 0) const; }; @@ -510,9 +510,9 @@ void LaplaceProblem::output_results () // other values than 2 or 3, but we // neglect this here for the sake // of brevity). - ofstream output ((dim == 2 ? - "solution-2d.gmv" : - "solution-3d.gmv"); + ofstream output (dim == 2 ? + "solution-2d.gmv" : + "solution-3d.gmv"); data_out.write_gmv (output); }; @@ -580,10 +580,11 @@ int main () // on just as before: define one of // these top-level objects and // transfer control to it: -// LaplaceProblem<2> laplace_problem_2d; -// laplace_problem_2d.run (); + LaplaceProblem<2> laplace_problem_2d; + laplace_problem_2d.run (); - LaplaceProblem<3> laplace_problem_3d; - laplace_problem_3d.run (); + LaplaceProblem<3> laplace_problem_3d; + laplace_problem_3d.run (); + return 0; }; diff --git a/deal.II/examples/step-4/step-4.cc b/deal.II/examples/step-4/step-4.cc index 1e09267f8e..74ec87d055 100644 --- a/deal.II/examples/step-4/step-4.cc +++ b/deal.II/examples/step-4/step-4.cc @@ -128,7 +128,7 @@ class RightHandSide : public Function { public: virtual double value (const Point &p, - const unsigned int component) const; + const unsigned int component = 0) const; }; @@ -138,7 +138,7 @@ class BoundaryValues : public Function { public: virtual double value (const Point &p, - const unsigned int component) const; + const unsigned int component = 0) const; }; @@ -510,9 +510,9 @@ void LaplaceProblem::output_results () // other values than 2 or 3, but we // neglect this here for the sake // of brevity). - ofstream output ((dim == 2 ? - "solution-2d.gmv" : - "solution-3d.gmv"); + ofstream output (dim == 2 ? + "solution-2d.gmv" : + "solution-3d.gmv"); data_out.write_gmv (output); }; @@ -580,10 +580,11 @@ int main () // on just as before: define one of // these top-level objects and // transfer control to it: -// LaplaceProblem<2> laplace_problem_2d; -// laplace_problem_2d.run (); + LaplaceProblem<2> laplace_problem_2d; + laplace_problem_2d.run (); - LaplaceProblem<3> laplace_problem_3d; - laplace_problem_3d.run (); + LaplaceProblem<3> laplace_problem_3d; + laplace_problem_3d.run (); + return 0; }; -- 2.39.5