From: Martin Kronbichler Date: Mon, 8 Feb 2016 10:37:01 +0000 (+0100) Subject: Avoid C++11-isms in tests X-Git-Tag: v8.4.0-rc2~24^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2147%2Fhead;p=dealii.git Avoid C++11-isms in tests --- diff --git a/tests/base/tensor_mixing_types_02.cc b/tests/base/tensor_mixing_types_02.cc index a34e21ca38..317cf25793 100644 --- a/tests/base/tensor_mixing_types_02.cc +++ b/tests/base/tensor_mixing_types_02.cc @@ -30,9 +30,15 @@ int main () double d_scalar = 10.; std::complex c_scalar = 10.; - Tensor<1,2,float> f1 = { {1., 2.} }; - Tensor<1,2,double> d1 = { {4., 8.} }; - Tensor<1,2,std::complex > c1 = { {16., 32.} }; + Tensor<1,2,float> f1; + f1[0] = 1.; + f1[1] = 2.; + Tensor<1,2,double> d1; + d1[0] = 4.; + d1[1] = 8.; + Tensor<1,2,std::complex > c1; + c1[0] = 16.; + c1[1] = 32.; deallog << f1 + d1 << std::endl; deallog << f1 - d1 << std::endl; diff --git a/tests/mpi/periodicity_02.cc b/tests/mpi/periodicity_02.cc index a1f5dcde85..04e513b775 100644 --- a/tests/mpi/periodicity_02.cc +++ b/tests/mpi/periodicity_02.cc @@ -366,9 +366,9 @@ namespace Step22 GridTools::collect_periodic_faces( dof_handler, 2, 3, 1, periodicity_vector, Tensor<1, dim>(), matrix); - DoFTools::make_periodicity_constraints>( - periodicity_vector, constraints, fe.component_mask(velocities), - first_vector_components); + DoFTools::make_periodicity_constraints >( + periodicity_vector, constraints, fe.component_mask(velocities), + first_vector_components); #endif }