]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove duplicate asserts
authorMatthias Maier <tamiko@43-1.org>
Fri, 24 Nov 2017 16:41:23 +0000 (10:41 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 25 Nov 2017 18:41:48 +0000 (12:41 -0600)
include/deal.II/numerics/vector_tools.templates.h

index c8d39270e799996ecc21137786e20c766b3a0a7a..2af1e9ec92e0243783e3f735c20accc5c01f972e 100644 (file)
@@ -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](

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.