]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small adjustments in DataEntry 12457/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 12 Jun 2021 20:14:19 +0000 (22:14 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 12 Jun 2021 20:14:19 +0000 (22:14 +0200)
include/deal.II/numerics/data_out_dof_data.templates.h

index d2f5d89b49481bd4ac8fd41baa70bd47b816588c..befc54464b46aeebe0fe36b99c41e4cae712dded 100644 (file)
@@ -1038,8 +1038,7 @@ namespace internal
       memory_consumption() const override;
 
       /**
-       * Pointer to the data vector. Note that ownership of the vector pointed
-       * to remains with the caller of this class.
+       * Temporal storage for the data.
        */
       LinearAlgebra::distributed::BlockVector<ScalarType> vector;
     };
@@ -1392,6 +1391,7 @@ namespace internal
     void
     DataEntry<dim, spacedim, ScalarType>::clear()
     {
+      vector.reinit(0, 0);
       this->dof_handler = nullptr;
     }
 

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.