]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make the passed DoFHandler a constant one. Don't know why this wasn't done before.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 9 Mar 1999 10:17:08 +0000 (10:17 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 9 Mar 1999 10:17:08 +0000 (10:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@971 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h
deal.II/deal.II/source/numerics/data_io.cc

index 87f2a6a5b493f1e39a60246bebe26c397ef9200a..ea3a1ceed928d4d3f2573be79e48e324e9964d56 100644 (file)
@@ -326,7 +326,7 @@ class DataOut {
                                      * to extract geometry data and the
                                      * mapping between nodes and node values.
                                      */
-    void attach_dof_handler (DoFHandler<dim> &);
+    void attach_dof_handler (const DoFHandler<dim> &);
 
                                     /**
                                      * Add a data vector together with its
@@ -549,7 +549,7 @@ class DataOut {
                                     /**
                                      * Pointer to the dof handler object.
                                      */
-    DoFHandler<dim>   *dofs;
+    const DoFHandler<dim>   *dofs;
 
                                     /**
                                      * List of data elements.
index b34ce01796ba7707a782afccaa40cb869651a6b5..02f359eccbb6d90c47c4e5d2ab175d6c4d2a9a1c 100644 (file)
@@ -196,7 +196,7 @@ DataOut<dim>::DataOut () :
 
 
 template <int dim>
-void DataOut<dim>::attach_dof_handler (DoFHandler<dim> &d) {
+void DataOut<dim>::attach_dof_handler (const DoFHandler<dim> &d) {
   dofs = &d;
 };
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.