]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug: forgot that we can't delete the names and units of data.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 26 Jul 2000 14:49:12 +0000 (14:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 26 Jul 2000 14:49:12 +0000 (14:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@3213 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index 7cb4d6fe3c143cfd24cc8b66ccf6c92bc460cef3..e27355a9b2f8156ad651eea5f5a7dc310ef414bb 100644 (file)
@@ -154,6 +154,25 @@ void DataOut_DoFData<dim>::clear_data_vectors ()
 
 
 
+template <int dim>
+void DataOut_DoFData<dim>::clear_input_data_references ()
+{
+  for (unsigned int i=0; i<dof_data.size(); ++i)
+    dof_data[i].data = 0;
+  
+  for (unsigned int i=0; i<cell_data.size(); ++i)
+    cell_data[i].data = 0;
+
+  if (dofs != 0)
+    {
+      dofs->unsubscribe ();
+      dofs = 0;
+    };
+};
+
+
+
+
 template <int dim>
 void DataOut_DoFData<dim>::clear ()
 {

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.