From: wolf Date: Sun, 2 Jan 2000 20:35:49 +0000 (+0000) Subject: Various small updates. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0280965939ec8d2971a2feaef33fc4c02087aa8;p=dealii-svn.git Various small updates. git-svn-id: https://svn.dealii.org/trunk@2142 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-1/step-1.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-1/step-1.cc index cff1bb3f70..f2487effbe 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-1/step-1.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-1/step-1.cc @@ -1,6 +1,9 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ - // Needed for the Triangulation class: + // The most fundamental class in the + // library is the ``Triangulation'' + // class, which is declared here: #include // We need the following two includes // for loops over cells and/or faces: @@ -40,7 +43,7 @@ void first_grid () // dimensions. Likewise, there are // version working in one ("<1>") // and three ("<3>") space - // dimension, or for all + // dimensions, or for all // dimensions. We will see such // constructs in later examples, // where we show how to program diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-2/step-2.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-2/step-2.cc index b8045ea877..e39eda858b 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-2/step-2.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-2/step-2.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // The following includes are just // like for the previous program, so diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc index 407191cc88..6a2c095c2a 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-3/step-3.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // These include files are already // known to you. They declare the @@ -111,7 +112,7 @@ class LaplaceProblem void make_grid_and_dofs (); void assemble_system (); void solve (); - void output_results (); + void output_results () const; // And then we have the member // variables. There are variables @@ -732,7 +733,7 @@ void LaplaceProblem::solve () // have no such postprocessing here, // but we would like to write the // solution to a file. -void LaplaceProblem::output_results () +void LaplaceProblem::output_results () const { // To write the output to a file, // we need an object which knows 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 5c95b88071..73967fb1e5 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 @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // The first few (many?) include // files have already been used in @@ -68,7 +69,7 @@ class LaplaceProblem void make_grid_and_dofs (); void assemble_system (); void solve (); - void output_results (); + void output_results () const; Triangulation triangulation; FEQ1 fe; @@ -490,7 +491,7 @@ void LaplaceProblem::solve () // example. No changes here for // dimension independentce either. template -void LaplaceProblem::output_results () +void LaplaceProblem::output_results () const { DataOut data_out; diff --git a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc index 8e0beba015..aa67eff4fc 100644 --- a/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc +++ b/deal.II/deal.II/Attic/examples/step-by-step/step-5/step-5.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // Again, the first few include files // are already known, so we won't @@ -66,7 +67,7 @@ class LaplaceProblem void setup_system (); void assemble_system (); void solve (); - void output_results (const unsigned int cycle); + void output_results (const unsigned int cycle) const; Triangulation triangulation; FEQ1 fe; @@ -635,7 +636,7 @@ void LaplaceProblem::solve () // filename for each refinement // cycle. template -void LaplaceProblem::output_results (const unsigned int cycle) +void LaplaceProblem::output_results (const unsigned int cycle) const { DataOut data_out; diff --git a/deal.II/examples/step-1/step-1.cc b/deal.II/examples/step-1/step-1.cc index cff1bb3f70..f2487effbe 100644 --- a/deal.II/examples/step-1/step-1.cc +++ b/deal.II/examples/step-1/step-1.cc @@ -1,6 +1,9 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ - // Needed for the Triangulation class: + // The most fundamental class in the + // library is the ``Triangulation'' + // class, which is declared here: #include // We need the following two includes // for loops over cells and/or faces: @@ -40,7 +43,7 @@ void first_grid () // dimensions. Likewise, there are // version working in one ("<1>") // and three ("<3>") space - // dimension, or for all + // dimensions, or for all // dimensions. We will see such // constructs in later examples, // where we show how to program diff --git a/deal.II/examples/step-2/step-2.cc b/deal.II/examples/step-2/step-2.cc index b8045ea877..e39eda858b 100644 --- a/deal.II/examples/step-2/step-2.cc +++ b/deal.II/examples/step-2/step-2.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // The following includes are just // like for the previous program, so diff --git a/deal.II/examples/step-3/step-3.cc b/deal.II/examples/step-3/step-3.cc index 407191cc88..6a2c095c2a 100644 --- a/deal.II/examples/step-3/step-3.cc +++ b/deal.II/examples/step-3/step-3.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // These include files are already // known to you. They declare the @@ -111,7 +112,7 @@ class LaplaceProblem void make_grid_and_dofs (); void assemble_system (); void solve (); - void output_results (); + void output_results () const; // And then we have the member // variables. There are variables @@ -732,7 +733,7 @@ void LaplaceProblem::solve () // have no such postprocessing here, // but we would like to write the // solution to a file. -void LaplaceProblem::output_results () +void LaplaceProblem::output_results () const { // To write the output to a file, // we need an object which knows diff --git a/deal.II/examples/step-4/step-4.cc b/deal.II/examples/step-4/step-4.cc index 5c95b88071..73967fb1e5 100644 --- a/deal.II/examples/step-4/step-4.cc +++ b/deal.II/examples/step-4/step-4.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // The first few (many?) include // files have already been used in @@ -68,7 +69,7 @@ class LaplaceProblem void make_grid_and_dofs (); void assemble_system (); void solve (); - void output_results (); + void output_results () const; Triangulation triangulation; FEQ1 fe; @@ -490,7 +491,7 @@ void LaplaceProblem::solve () // example. No changes here for // dimension independentce either. template -void LaplaceProblem::output_results () +void LaplaceProblem::output_results () const { DataOut data_out; diff --git a/deal.II/examples/step-5/step-5.cc b/deal.II/examples/step-5/step-5.cc index 8e0beba015..aa67eff4fc 100644 --- a/deal.II/examples/step-5/step-5.cc +++ b/deal.II/examples/step-5/step-5.cc @@ -1,4 +1,5 @@ /* $Id$ */ +/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ // Again, the first few include files // are already known, so we won't @@ -66,7 +67,7 @@ class LaplaceProblem void setup_system (); void assemble_system (); void solve (); - void output_results (const unsigned int cycle); + void output_results (const unsigned int cycle) const; Triangulation triangulation; FEQ1 fe; @@ -635,7 +636,7 @@ void LaplaceProblem::solve () // filename for each refinement // cycle. template -void LaplaceProblem::output_results (const unsigned int cycle) +void LaplaceProblem::output_results (const unsigned int cycle) const { DataOut data_out;