From: Wolfgang Bangerth Date: Thu, 27 Jan 2022 20:40:19 +0000 (-0700) Subject: Add a missing assertion. X-Git-Tag: v9.4.0-rc1~551^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13305%2Fhead;p=dealii.git Add a missing assertion. --- diff --git a/include/deal.II/numerics/vector_tools_interpolate.templates.h b/include/deal.II/numerics/vector_tools_interpolate.templates.h index 6636dd18db..84533c8213 100644 --- a/include/deal.II/numerics/vector_tools_interpolate.templates.h +++ b/include/deal.II/numerics/vector_tools_interpolate.templates.h @@ -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,