From: Timo Heister Date: Fri, 27 Feb 2015 19:11:29 +0000 (-0500) Subject: add size assert to VectorTools::interpolate X-Git-Tag: v8.3.0-rc1~409^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=124a7f0b6287fb0f9b6fbe5d79f1cb090415f022;p=dealii.git add size assert to VectorTools::interpolate --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 016c834501..8619b896f3 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -80,6 +80,8 @@ namespace VectorTools const Function &function, VECTOR &vec) { + Assert (vec.size() == dof.n_dofs(), + ExcDimensionMismatch (vec.size(), dof.n_dofs())); Assert (dof.get_fe().n_components() == function.n_components, ExcDimensionMismatch(dof.get_fe().n_components(), function.n_components));