]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change error detection code a bit.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 May 1998 14:40:10 +0000 (14:40 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 May 1998 14:40:10 +0000 (14:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@353 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 6880086717f402a3c1b1817df736916f60021444..14303c4512c1208f4ac031810f3430006c71e6d5 100644 (file)
@@ -86,8 +86,10 @@ Assembler<dim>::Assembler (Triangulation<dim> *tria,
                           ((AssemblerData<dim>*)local_data)->update_flags),
                boundary(((AssemblerData<dim>*)local_data)->boundary)
 {
-  Assert (matrix.m() == dof_handler->n_dofs(), ExcInvalidData());
-  Assert (matrix.n() == dof_handler->n_dofs(), ExcInvalidData());
+  Assert (!assemble_matrix || (matrix.m() == dof_handler->n_dofs()),
+         ExcInvalidData());
+  Assert (!assemble_matrix || (matrix.n() == dof_handler->n_dofs()),
+         ExcInvalidData());
   Assert (((AssemblerData<dim>*)local_data)->fe == dof_handler->get_selected_fe(),
          ExcInvalidData());
   Assert (!assemble_rhs || (rhs_vector.size()==dof_handler->n_dofs()),

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.