]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix tests without cxx11 2140/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 5 Feb 2016 16:42:13 +0000 (11:42 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 5 Feb 2016 16:42:13 +0000 (11:42 -0500)
tests/hp/hp_constraints_neither_dominate_02.cc
tests/petsc/different_matrix_preconditioner.cc

index 6905937fa8c22df9fd83fa23f9ed8b20e656b56e..43582bb1c7d72749de9d6c873ec1bb36b3076b8a 100644 (file)
@@ -80,7 +80,7 @@ using namespace dealii;
 template <int dim>
 struct less_than_key
 {
-  inline bool operator() (const std::pair<Point<dim>,Vector<double>> &pair1, const std::pair<Point<dim>,Vector<double>> &pair2)
+  inline bool operator() (const std::pair<Point<dim>,Vector<double> > &pair1, const std::pair<Point<dim>,Vector<double> > &pair2)
   {
     const double precision = 1e-3;
     const Point<dim> &p1 = pair1.first;
@@ -169,7 +169,7 @@ void test2cells(const FiniteElement<dim> &fe_0,
 #ifdef DEBUG_OUTPUT_VTK
   // output to check if all is good:
   counter++;
-  std::vector<Vector<double>> shape_functions;
+  std::vector<Vector<double> > shape_functions;
   std::vector<std::string> names;
   for (unsigned int s=0; s < dof_handler.n_dofs(); s++)
     {
@@ -193,7 +193,7 @@ void test2cells(const FiniteElement<dim> &fe_0,
       shape_functions.push_back(shape_function);
     }
 
-  DataOut<dim,hp::DoFHandler<dim>> data_out;
+  DataOut<dim,hp::DoFHandler<dim> > data_out;
   data_out.attach_dof_handler (dof_handler);
 
   // get material ids:
@@ -234,7 +234,7 @@ void test2cells(const FiniteElement<dim> &fe_0,
   std::vector<unsigned int> local_face_dof_indices;
   std::vector<Vector<double> > values;
 
-  std::vector<std::pair<Point<dim>,Vector<double>> > pairs_point_value;
+  std::vector<std::pair<Point<dim>,Vector<double> > > pairs_point_value;
 
   for (typename hp::DoFHandler<dim>::active_cell_iterator
        cell = dof_handler.begin_active();
index 05135b2866c1ec54a40a15c5533a439f581969cc..baca29b5cf44341b1fd0d38f6d931d8c17dfacee 100644 (file)
@@ -74,10 +74,8 @@ int main(int argc, char **argv)
   SparseMatrix<double>::iterator it = A_tmp.begin(), endit = A_tmp.end();
   for (; it!=endit; ++it)
     {
-      const auto row = it->row();
-      const auto column = it->column();
-      A.set(row, column, it->value());
-      A2.set(row, column, 1000. * it->value()); // scale A2 by 1000.
+      A.set(it->row(), it->column(), it->value());
+      A2.set(it->row(), it->column(), 1000. * it->value()); // scale A2 by 1000.
     }
   A.compress(VectorOperation::insert);
   A2.compress(VectorOperation::insert);

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.