]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Weaken a security check.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 May 1998 15:12:38 +0000 (15:12 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 15 May 1998 15:12:38 +0000 (15:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@287 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/assembler.cc

index d016ae11cbcede3602da4c06b161b0562212bdb0..ebe0a4b57324705566e3b201bb3fcc18320f78af 100644 (file)
@@ -90,7 +90,7 @@ Assembler<dim>::Assembler (Triangulation<dim> *tria,
   Assert (matrix.n() == dof_handler->n_dofs(), ExcInvalidData());
   Assert (((AssemblerData<dim>*)local_data)->fe == dof_handler->get_selected_fe(),
          ExcInvalidData());
-  Assert (rhs_vector.size() == dof_handler->n_dofs(),
+  Assert (!assemble_rhs || (rhs_vector.size()==dof_handler->n_dofs()),
          ExcInvalidData());
 };
 

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.