From 9d96336bc4d9199a4f376f7c00460c8435c24d67 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 24 Nov 2017 10:41:23 -0600 Subject: [PATCH] remove duplicate asserts --- .../deal.II/numerics/vector_tools.templates.h | 22 ------------------- 1 file changed, 22 deletions(-) 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]( -- 2.39.5