From: wolf Date: Tue, 9 Mar 1999 10:17:08 +0000 (+0000) Subject: Make the passed DoFHandler a constant one. Don't know why this wasn't done before. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c098a2c508120a24b039efa7ba5bb161ebc803d4;p=dealii-svn.git Make the passed DoFHandler a constant one. Don't know why this wasn't done before. git-svn-id: https://svn.dealii.org/trunk@971 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/data_io.h b/deal.II/deal.II/include/numerics/data_io.h index 87f2a6a5b4..ea3a1ceed9 100644 --- a/deal.II/deal.II/include/numerics/data_io.h +++ b/deal.II/deal.II/include/numerics/data_io.h @@ -326,7 +326,7 @@ class DataOut { * to extract geometry data and the * mapping between nodes and node values. */ - void attach_dof_handler (DoFHandler &); + void attach_dof_handler (const DoFHandler &); /** * Add a data vector together with its @@ -549,7 +549,7 @@ class DataOut { /** * Pointer to the dof handler object. */ - DoFHandler *dofs; + const DoFHandler *dofs; /** * List of data elements. diff --git a/deal.II/deal.II/source/numerics/data_io.cc b/deal.II/deal.II/source/numerics/data_io.cc index b34ce01796..02f359eccb 100644 --- a/deal.II/deal.II/source/numerics/data_io.cc +++ b/deal.II/deal.II/source/numerics/data_io.cc @@ -196,7 +196,7 @@ DataOut::DataOut () : template -void DataOut::attach_dof_handler (DoFHandler &d) { +void DataOut::attach_dof_handler (const DoFHandler &d) { dofs = &d; };