]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using deprecated FiniteElement::operator[] function in tests. 11153/head
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 20 Nov 2020 02:37:56 +0000 (19:37 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 23 Nov 2020 17:44:13 +0000 (10:44 -0700)
tests/numerics/error_estimator_02.cc
tests/numerics/error_estimator_02_complex.cc

index 43747c118a6db554351312e0d0eb7a500eaad098..0394b4217fca16ef25ab72c821524513f7292355 100644 (file)
@@ -240,7 +240,7 @@ output(const std::string         name,
       cell = dof_handler.begin_active(),
       endc = dof_handler.end();
     for (unsigned int index = 0; cell != endc; ++cell, ++index)
-      fe_degrees(index) = dof_handler.get_fe()[cell->active_fe_index()].degree;
+      fe_degrees(index) = dof_handler.get_fe(cell->active_fe_index()).degree;
   }
 
   dealii::DataOut<dim, dealii::DoFHandler<dim>> data_out;
index 0d2c05fee03fdc8b31bd231687588f4c5b1c5f44..efa822912b57872665bdf670eefe20b3d82a912e 100644 (file)
@@ -185,7 +185,7 @@ output(const std::string                   name,
       cell = dof_handler.begin_active(),
       endc = dof_handler.end();
     for (unsigned int index = 0; cell != endc; ++cell, ++index)
-      fe_degrees(index) = dof_handler.get_fe()[cell->active_fe_index()].degree;
+      fe_degrees(index) = dof_handler.get_fe(cell->active_fe_index()).degree;
   }
 
   dealii::DataOut<dim, dealii::DoFHandler<dim>> data_out;

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.