From: Matthias Maier Date: Fri, 24 Nov 2017 16:41:23 +0000 (-0600) Subject: remove duplicate asserts X-Git-Tag: v9.0.0-rc1~728^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d96336bc4d9199a4f376f7c00460c8435c24d67;p=dealii.git remove duplicate asserts --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index c8d39270e7..2af1e9ec92 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -501,20 +501,9 @@ namespace VectorTools VectorType &vec, const ComponentMask &component_mask) { - Assert(component_mask.represents_n_components(dof_handler.get_fe().n_components()), - ExcMessage("The number of components in the mask has to be either " - "zero or equal to the number of components in the finite " - "element.")); - - Assert (vec.size() == dof_handler.n_dofs(), - ExcDimensionMismatch (vec.size(), dof_handler.n_dofs())); - Assert (dof_handler.get_fe().n_components() == function.n_components, ExcDimensionMismatch(dof_handler.get_fe().n_components(), function.n_components)); - Assert (component_mask.n_selected_components(dof_handler.get_fe().n_components()) > 0, - ComponentMask::ExcNoComponentSelected()); - // Create a small lambda capture wrapping function and call the // internal implementation const auto function_map = [&function]( @@ -615,17 +604,6 @@ namespace VectorTools VectorType &vec, const ComponentMask &component_mask) { - Assert(component_mask.represents_n_components(dof_handler.get_fe().n_components()), - ExcMessage("The number of components in the mask has to be either " - "zero or equal to the number of components in the finite " - "element.")); - - Assert (vec.size() == dof_handler.n_dofs(), - ExcDimensionMismatch (vec.size(), dof_handler.n_dofs())); - - Assert (component_mask.n_selected_components(dof_handler.get_fe().n_components()) > 0, - ComponentMask::ExcNoComponentSelected()); - // Create a small lambda capture wrapping the function map and call the // internal implementation const auto function_map = [&functions](