]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor fix and changelog 12588/head
authorJiaqi Zhang <jiaqi2@clemson.edu>
Wed, 21 Jul 2021 18:03:05 +0000 (18:03 +0000)
committerJiaqi Zhang <jiaqi2@clemson.edu>
Wed, 21 Jul 2021 18:03:05 +0000 (18:03 +0000)
doc/news/changes/minor/20210721JiaqiZhang [new file with mode: 0644]
include/deal.II/base/table.h

diff --git a/doc/news/changes/minor/20210721JiaqiZhang b/doc/news/changes/minor/20210721JiaqiZhang
new file mode 100644 (file)
index 0000000..010a727
--- /dev/null
@@ -0,0 +1,4 @@
+New: The new function TableBase::clear() allows to 
+empty a Table object.
+<br>
+(Jiaqi Zhang, 2021/07/21)
index 7eb422369f42f9003d24b85b24347cf70a3f4089..62541c403466dcb81899115101bfbaeabde7ecd4 100644 (file)
@@ -2431,7 +2431,7 @@ template <int N, typename T>
 inline void
 TableBase<N, T>::clear()
 {
-  values.resize(0);
+  values.clear();
   table_size = TableIndices<N>();
 }
 

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.