]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Select correct number of quadrature points and skip assertion
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Mon, 13 Dec 2021 12:33:03 +0000 (13:33 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Mon, 13 Dec 2021 12:33:20 +0000 (13:33 +0100)
include/deal.II/matrix_free/fe_evaluation_data.h

index 711a1500a65b86a1d11e56d5832d60d3a34c6bb2..436288bd906460e0470230388b4dbcabcb1ee5f9 100644 (file)
@@ -936,7 +936,9 @@ inline FEEvaluationData<dim, Number, is_face>::FEEvaluationData(
   , active_fe_index(initialization_data.active_fe_index)
   , active_quad_index(initialization_data.active_quad_index)
   , descriptor(initialization_data.descriptor)
-  , n_quadrature_points(is_face ? data->n_q_points_face : data->n_q_points)
+  , n_quadrature_points(descriptor == nullptr ?
+                          (is_face ? data->n_q_points_face : data->n_q_points) :
+                          descriptor->n_q_points)
   , jacobian(nullptr)
   , J_value(nullptr)
   , normal_vectors(nullptr)
@@ -963,11 +965,7 @@ inline FEEvaluationData<dim, Number, is_face>::FEEvaluationData(
   , face_orientation(0)
   , subface_index(0)
   , cell_type(internal::MatrixFreeFunctions::general)
-{
-  // TODO: This currently fails for simplex/matrix_free_face_integral_01
-  // if (descriptor != nullptr)
-  // AssertDimension(n_quadrature_points, descriptor->n_q_points);
-}
+{}
 
 
 

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.