]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add assert to MappingFE 10843/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 25 Aug 2020 21:38:45 +0000 (23:38 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 1 Sep 2020 05:55:36 +0000 (07:55 +0200)
include/deal.II/fe/mapping_fe.h
source/fe/mapping_fe.cc

index 2c617b367d7335379a55c8b299b68734300b175c..aa96493fcb8e6161c51ce8c8ff7dd81697ebdb0d 100644 (file)
@@ -49,7 +49,8 @@ DEAL_II_NAMESPACE_OPEN
  * equivalent to MappingQGeneric(degree). Please note that no optimizations
  * exploiting tensor-product structures of finite elements have been added here.
  *
- * @note Currently, only implemented for degree==1.
+ * @node Currently, only implemented for elements with tensor_degree==1 and
+ *   n_components==1.
  *
  * @ingroup simplex
  */
index 746abb6785733e7157ca25adf210a0a983eefe61..16fa1546411b09afe2d65c0286b8b8518da88e0f 100644 (file)
@@ -926,6 +926,8 @@ MappingFE<dim, spacedim>::MappingFE(const FiniteElement<dim, spacedim> &fe)
   Assert(polynomial_degree >= 1,
          ExcMessage("It only makes sense to create polynomial mappings "
                     "with a polynomial degree greater or equal to one."));
+  Assert(fe.tensor_degree() == 1, ExcNotImplemented());
+  Assert(fe.n_components() == 1, ExcNotImplemented());
 }
 
 

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.