]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning in step70 10228/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 15 May 2020 14:11:41 +0000 (16:11 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 15 May 2020 21:17:44 +0000 (23:17 +0200)
examples/step-70/step-70.cc

index 07847ec145e40eaf8a48f8fbba8b052f83e0163a..21971dfbfe39c2db2f7720e2a17fe9ea62369f92 100644 (file)
@@ -1398,8 +1398,11 @@ namespace Step70
 
     const auto invS = inverse_operator(S, cg, amgS);
 
-    const auto P =
-      block_diagonal_operator<2, LA::MPI::BlockVector>({amgA, amgS});
+    const auto P = block_diagonal_operator<2, LA::MPI::BlockVector>(
+      std::array<
+        dealii::LinearOperator<
+          typename dealii::TrilinosWrappers::MPI::BlockVector::BlockType>,
+        2>{{amgA, amgS}});
 
     SolverControl solver_control(system_matrix.m(),
                                  1e-10 * system_rhs.l2_norm());

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.