]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the Trilinos quick test. 4521/head
authorDavid Wells <wellsd2@rpi.edu>
Fri, 16 Jun 2017 14:17:13 +0000 (10:17 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 16 Jun 2017 14:17:13 +0000 (10:17 -0400)
It looks like we did not update this constructor when we removed the serial
vector (the parallel vector's constructor needs an IndexSet, not an integer).

tests/quick_tests/step-trilinos.cc

index aba3202584c08d4af030c17fc4fc493529cb64e4..7c444e8b911c41e0b8be66c46b629807f6392cc2 100644 (file)
@@ -85,8 +85,8 @@ void LaplaceProblem::setup_system ()
   DoFTools::make_sparsity_pattern (dof_handler, dsp, constraints, false);\r
 \r
   A.reinit (dsp);\r
-  b.reinit (dof_handler.n_dofs());\r
-  x.reinit (dof_handler.n_dofs());\r
+  b.reinit (complete_index_set(dof_handler.n_dofs()));\r
+  x.reinit (complete_index_set(dof_handler.n_dofs()));\r
 \r
   // some output\r
   output_table.add_value ("cells", triangulation.n_active_cells());\r

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.