]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix run time error in step-75. 13441/head
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 23 Feb 2022 16:03:37 +0000 (17:03 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Wed, 23 Feb 2022 16:03:37 +0000 (17:03 +0100)
examples/step-75/step-75.cc

index 744e5ab7103c6d66200cb7c42cb18b86a084020e..54874562214cdf516ab7bad391cbbae9f484de3e 100644 (file)
@@ -427,6 +427,7 @@ namespace Step75
   void LaplaceOperator<dim, number>::compute_inverse_diagonal(
     VectorType &diagonal) const
   {
+    this->matrix_free.initialize_dof_vector(diagonal);
     MatrixFreeTools::compute_diagonal(matrix_free,
                                       diagonal,
                                       &LaplaceOperator::do_cell_integral_local,

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.