]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a missing assertion. 13305/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Jan 2022 20:40:19 +0000 (13:40 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Jan 2022 20:40:19 +0000 (13:40 -0700)
include/deal.II/numerics/vector_tools_interpolate.templates.h

index 6636dd18db1278ef4f87db0617fab34d3b3b0422..84533c82136d5fcac149e51b59f502cc2862e044 100644 (file)
@@ -526,6 +526,8 @@ namespace VectorTools
     VectorType &                                               vec,
     const ComponentMask &                                      component_mask)
   {
+    AssertDimension(dof.get_fe_collection().n_components(),
+                    function.n_components);
     interpolate(get_default_linear_mapping(dof.get_triangulation()),
                 dof,
                 function,

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.