]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecated FiniteElement::operator[]. 11170/head
authorMarc Fehling <mafehling.git@gmail.com>
Thu, 12 Nov 2020 02:37:05 +0000 (19:37 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Thu, 12 Nov 2020 03:07:20 +0000 (20:07 -0700)
doc/news/changes/incompatibilities/20201111Fehling [new file with mode: 0644]
include/deal.II/fe/fe.h

diff --git a/doc/news/changes/incompatibilities/20201111Fehling b/doc/news/changes/incompatibilities/20201111Fehling
new file mode 100644 (file)
index 0000000..aa0995b
--- /dev/null
@@ -0,0 +1,5 @@
+Deprecated: The operator FiniteElement::operator[] has been deprecated.
+Use DoFHandler::get_fe() with a specified index instead of code like
+dof_handler->get_fe()[index].
+<br>
+(Marc Fehling, 2020/11/11)
index 88b5787810098450ac413d006e186b888fea6be8..d0e58d067c62d820a95c44c75935df7c0dd1dd4c 100644 (file)
@@ -837,9 +837,12 @@ public:
    * operator[] accepts this zero argument, by returning the finite element
    * with index zero within its collection (that, of course, consists only of
    * the present finite element anyway).
+   *
+   * @deprecated With DoFHandler::get_fe(int) and the deprecation of the
+   * hp::DoFHandler class, there is no more use of this operator.
    */
-  const FiniteElement<dim, spacedim> &
-  operator[](const unsigned int fe_index) const;
+  DEAL_II_DEPRECATED const FiniteElement<dim, spacedim> &
+                           operator[](const unsigned int fe_index) const;
 
   /**
    * @name Shape function access

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.