]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix FEEvaluation::gather_evaluate() for user-defined batches 13688/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 7 May 2022 19:17:42 +0000 (21:17 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 7 May 2022 21:37:24 +0000 (23:37 +0200)
include/deal.II/matrix_free/fe_evaluation.h

index 5c80c2f99480d2478da358377f6980880520c2df..fa8aafadaa60961de96d2b0109f4cbc43e57edac 100644 (file)
@@ -7269,6 +7269,10 @@ namespace internal
   VectorizedArrayType *
   check_vector_access_inplace(const EvaluatorType &fe_eval, VectorType &vector)
   {
+    // for user-defined cell batches this functionality is not supported
+    if (fe_eval.get_current_cell_index() == numbers::invalid_unsigned_int)
+      return nullptr;
+
     const unsigned int cell     = fe_eval.get_cell_or_face_batch_id();
     const auto &       dof_info = fe_eval.get_dof_info();
 

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.