]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Strengthen an assertion.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 17 Jun 2003 15:03:18 +0000 (15:03 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 17 Jun 2003 15:03:18 +0000 (15:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@7801 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index 1bf6f6a19d7e82c26f3a52e042f30f1592048b31..7d40b465571ea006e684aeb87c070f4b38b03628 100644 (file)
@@ -777,10 +777,11 @@ interpolate_boundary_values (const Mapping<dim>            &mapping,
   const FiniteElement<dim> &fe           = dof.get_fe();
   const unsigned int        n_components = fe.n_components();
   const bool                fe_is_system = (n_components != 1);
-  
-  Assert ((function_map.size() == 0) ||
-         (n_components == function_map.begin()->second->n_components),
-         ExcInvalidFE());
+
+  for (typename FunctionMap<dim>::type::const_iterator i=function_map.begin();
+       i!=function_map.end(); ++i)
+    Assert (n_components == i->second->n_components,
+           ExcInvalidFE());
 
                                   // set the component mask to either
                                   // the original value or a vector

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.