]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FETools::interpolate: Skip body if FENothing is encountered
authorMatthias Maier <tamiko@43-1.org>
Sat, 16 Sep 2017 05:43:54 +0000 (00:43 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 17 Sep 2017 20:26:40 +0000 (15:26 -0500)
source/fe/fe_system.cc

index 97d58fa60440cb88376cc5d1389b2d6cb161faf2..c3b5785de0fa5e421bbf87bced55d0a597d97bb8 100644 (file)
@@ -2274,6 +2274,15 @@ convert_generalized_support_point_values_to_dof_values (const std::vector<Vector
         base_element.get_generalized_support_points().size();
       const unsigned int n_base_components = base_element.n_components();
 
+      // If the number of base degrees of freedom is zero, there is nothing
+      // to do, skip the rest of the body in this case and continue with
+      // the next element
+      if (n_base_dofs == 0)
+        {
+          current_vector_component += multiplicity * n_base_components;
+          continue;
+        }
+
       base_dof_values.resize(n_base_dofs);
       base_point_values.resize(n_base_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.