]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around a bug in gcc 4.6. 1871/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 14 Nov 2015 12:33:07 +0000 (06:33 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 14 Nov 2015 12:33:07 +0000 (06:33 -0600)
tests/lac/block_linear_operator_05.cc

index bb5e41ecfe254c940ec55985226a130fbaad75dd..dceab47d9639789b43277ffa141c52cf27c173dc 100644 (file)
@@ -44,8 +44,11 @@ int main(int argc, char *argv[])
   auto op_b = linear_operator<TrilinosWrappers::MPI::BlockVector>(b);
   auto op_b3 = linear_operator<TrilinosWrappers::BlockVector>(b);
 
-  auto op_c = block_diagonal_operator<2, TrilinosWrappers::MPI::BlockVector >({{ op_a, op_a}});
-  auto op_c2 = block_diagonal_operator<2, TrilinosWrappers::BlockVector >({{ op_a2, op_a2}});
+  typedef LinearOperator<TrilinosWrappers::MPI::Vector,TrilinosWrappers::MPI::Vector> Op_MPI;
+  typedef LinearOperator<TrilinosWrappers::Vector,TrilinosWrappers::Vector> Op;
+
+  auto op_c = block_diagonal_operator<2, TrilinosWrappers::MPI::BlockVector >(std::array<Op_MPI,2> ({{ op_a, op_a}}));
+  auto op_c2 = block_diagonal_operator<2, TrilinosWrappers::BlockVector >(std::array<Op,2> ({{ op_a2, op_a2}}));
 
   deallog << "OK" << std::endl;
 

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.