]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return earlier if possible 17740/head
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Tue, 1 Oct 2024 10:25:46 +0000 (12:25 +0200)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Tue, 1 Oct 2024 10:25:46 +0000 (12:25 +0200)
include/deal.II/matrix_free/fe_point_evaluation.h

index cb80eb478de4fd2fcaab5968fbc89ca9f372e742..3878f076e934900561c2373f8a651f34971e70b3 100644 (file)
@@ -2467,18 +2467,18 @@ FEPointEvaluation<n_components_, dim, spacedim, Number>::evaluate(
   const StridedArrayView<const ScalarNumber, stride_view> &solution_values,
   const EvaluationFlags::EvaluationFlags                  &evaluation_flags)
 {
-  if (this->must_reinitialize_pointers)
-    internal_reinit_single_cell_state_mapping_info();
-
-  if (this->n_q_points == 0)
-    return;
-
   Assert(!(evaluation_flags & EvaluationFlags::hessians), ExcNotImplemented());
 
   if (!((evaluation_flags & EvaluationFlags::values) ||
         (evaluation_flags & EvaluationFlags::gradients))) // no evaluation flags
     return;
 
+  if (this->must_reinitialize_pointers)
+    internal_reinit_single_cell_state_mapping_info();
+
+  if (this->n_q_points == 0)
+    return;
+
   AssertDimension(solution_values.size(), this->fe->dofs_per_cell);
   if (this->fast_path)
     {

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.