]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one place where the syntax has to be adjusted to the new ComponentMask class.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 16:52:19 +0000 (16:52 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 16:52:19 +0000 (16:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@26790 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index e94bba409f2bde56f6c3f5fcbf12a46d6d3e6c6d..cb1541df98a23c924f29c74f3202074514f670e8 100644 (file)
@@ -4449,7 +4449,7 @@ namespace DoFTools
                           std::vector<std::vector<bool> > &constant_modes)
   {
     const unsigned int n_components = dof_handler.get_fe().n_components();
-    Assert (n_components == component_mask.size(),
+    Assert (component_mask.represents_n_components(n_components),
             ExcDimensionMismatch(n_components,
                                  component_mask.size()));
     std::vector<unsigned int> localized_component (n_components,

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.