/* $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 <grid/tria.h>
// We need the following two includes
// for loops over cells and/or faces:
// 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
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// The following includes are just
// like for the previous program, so
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// These include files are already
// known to you. They declare the
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
// 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
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// The first few (many?) include
// files have already been used in
void make_grid_and_dofs ();
void assemble_system ();
void solve ();
- void output_results ();
+ void output_results () const;
Triangulation<dim> triangulation;
FEQ1<dim> fe;
// example. No changes here for
// dimension independentce either.
template <int dim>
-void LaplaceProblem<dim>::output_results ()
+void LaplaceProblem<dim>::output_results () const
{
DataOut<dim> data_out;
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// Again, the first few include files
// are already known, so we won't
void setup_system ();
void assemble_system ();
void solve ();
- void output_results (const unsigned int cycle);
+ void output_results (const unsigned int cycle) const;
Triangulation<dim> triangulation;
FEQ1<dim> fe;
// filename for each refinement
// cycle.
template <int dim>
-void LaplaceProblem<dim>::output_results (const unsigned int cycle)
+void LaplaceProblem<dim>::output_results (const unsigned int cycle) const
{
DataOut<dim> data_out;
/* $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 <grid/tria.h>
// We need the following two includes
// for loops over cells and/or faces:
// 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
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// The following includes are just
// like for the previous program, so
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// These include files are already
// known to you. They declare the
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
// 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
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// The first few (many?) include
// files have already been used in
void make_grid_and_dofs ();
void assemble_system ();
void solve ();
- void output_results ();
+ void output_results () const;
Triangulation<dim> triangulation;
FEQ1<dim> fe;
// example. No changes here for
// dimension independentce either.
template <int dim>
-void LaplaceProblem<dim>::output_results ()
+void LaplaceProblem<dim>::output_results () const
{
DataOut<dim> data_out;
/* $Id$ */
+/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
// Again, the first few include files
// are already known, so we won't
void setup_system ();
void assemble_system ();
void solve ();
- void output_results (const unsigned int cycle);
+ void output_results (const unsigned int cycle) const;
Triangulation<dim> triangulation;
FEQ1<dim> fe;
// filename for each refinement
// cycle.
template <int dim>
-void LaplaceProblem<dim>::output_results (const unsigned int cycle)
+void LaplaceProblem<dim>::output_results (const unsigned int cycle) const
{
DataOut<dim> data_out;