]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Implement new Table<3, T>::reinit() 13364/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 12 Feb 2022 05:57:43 +0000 (06:57 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 12 Feb 2022 05:57:43 +0000 (06:57 +0100)
include/deal.II/base/table.h

index 286304f4f37e741a6dc0f0353ec888bb5799a297..2c48b74e93aa22dd76ad80e430d490b8aa89f1e9 100644 (file)
@@ -1549,6 +1549,18 @@ public:
         InputIterator   entries,
         const bool      C_style_indexing = true);
 
+  /**
+   * Reinitialize the object. Passes down to the base class
+   * by converting the arguments to the data type requested by the base class.
+   */
+  void
+  reinit(const size_type size1,
+         const size_type size2,
+         const size_type size3,
+         const bool      omit_default_initialization = false);
+
+  using TableBase<3, T>::reinit;
+
   /**
    * Access operator. Generate an object that accesses the requested two-
    * dimensional subobject of this three-dimensional table. Range checks are
@@ -3238,6 +3250,19 @@ inline Table<3, T>::Table(const size_type size1,
 
 
 
+template <typename T>
+inline void
+Table<3, T>::reinit(const size_type size1,
+                    const size_type size2,
+                    const size_type size3,
+                    const bool      omit_default_initialization)
+{
+  this->TableBase<3, T>::reinit(TableIndices<3>(size1, size2, size3),
+                                omit_default_initialization);
+}
+
+
+
 template <typename T>
 inline dealii::internal::TableBaseAccessors::Accessor<3, T, true, 2>
 Table<3, T>::operator[](const size_type i) const

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.