]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow for the old name in a couple of places.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Sep 2020 21:44:05 +0000 (15:44 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 30 Sep 2020 13:03:09 +0000 (07:03 -0600)
include/deal.II/fe/fe_tools.templates.h
source/base/quadrature_selector.cc

index e5812d22d046ff6dcfca493dbbb8582d707331aa..801323d736ef103aaf62db95dfd51a12b7b664a1 100644 (file)
@@ -2622,7 +2622,8 @@ namespace FETools
                     // find sub-quadrature
                     position = name.find('(');
                     const std::string subquadrature_name(name, 0, position);
-                    AssertThrow(subquadrature_name.compare("QTrapezoid") == 0,
+                    AssertThrow(subquadrature_name == "QTrapez" ||
+                                  subquadrature_name == "QTrapezoid",
                                 ExcNotImplemented(
                                   "Could not detect quadrature of name " +
                                   subquadrature_name));
index 42696bdd01da48ac81ad8799b6f5134289d233e3..22711b4451731d2ba60658961d70e558de101a1e 100644 (file)
@@ -46,6 +46,8 @@ QuadratureSelector<dim>::create_quadrature(const std::string &s,
         return QSimpson<dim>();
       else if (s == "trapez")
         return QTrapezoid<dim>();
+      else if (s == "trapezoid")
+        return QTrapezoid<dim>();
       else if (s == "weddle")
         return QWeddle<dim>();
     }

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.