From 08912e4499716e48781481e4d1cd06289e70c621 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sat, 12 Feb 2022 06:57:43 +0100 Subject: [PATCH] Implement new Table<3, T>::reinit() --- include/deal.II/base/table.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 286304f4f3..2c48b74e93 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -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 +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 inline dealii::internal::TableBaseAccessors::Accessor<3, T, true, 2> Table<3, T>::operator[](const size_type i) const -- 2.39.5