]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix tests without C++11 4047/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 7 Mar 2017 14:54:22 +0000 (15:54 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 7 Mar 2017 14:54:22 +0000 (15:54 +0100)
tests/mpi/distribute_flux_sparsity_pattern.cc
tests/trilinos/block_vector_iterator_03.cc
tests/trilinos/elide_zeros.cc

index 9ec6f3bdcbe67c92018bf0407db383324ded423a..2083c65b8dfc7aee21a4feeb1f23f15de8f24cb0 100644 (file)
@@ -114,8 +114,8 @@ namespace LinearAdvectionTest
       {
         for (unsigned int j = 0; j < fe.n_components(); ++j)
           {
-            cell_integral_mask(i, j) = DoFTools::Coupling::always;
-            flux_integral_mask(i, j) = DoFTools::Coupling::nonzero;
+            cell_integral_mask(i, j) = DoFTools::always;
+            flux_integral_mask(i, j) = DoFTools::nonzero;
           }
       }
 
index 904048eab90a4d257d8d5c0a3678ce79a9592861..0bd55a52b15ede62370d5ec67ed9aadcdcee95fe 100644 (file)
@@ -179,9 +179,9 @@ void test ()
 
       // check std::transform
       std::transform (v1.begin(), v1.end(), v2.begin(),
-                      std::bind (std::multiplies<double>(),
-                                 std_cxx11::_1,
-                                 2.0));
+                      std_cxx11::bind (std::multiplies<double>(),
+                                       std_cxx11::_1,
+                                       2.0));
       v2 *= 1./2.;
       deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
 
@@ -368,4 +368,3 @@ int main (int argc,char **argv)
 
   return 0;
 }
-
index 4c24cc496cd5e237ef00636914aa2d6871ff015a..7fae90661f8d2c3634f6da2f050cb127d7e085c5 100644 (file)
@@ -157,8 +157,8 @@ namespace LinearAdvectionTest
     DynamicSparsityPattern dynamic_sparsity_pattern(locally_relevant_dofs);
     Table<2, DoFTools::Coupling> cell_integral_mask(1, 1);
     Table<2, DoFTools::Coupling> flux_integral_mask(1, 1);
-    cell_integral_mask(0, 0) = DoFTools::Coupling::always;
-    flux_integral_mask(0, 0) = DoFTools::Coupling::nonzero;
+    cell_integral_mask(0, 0) = DoFTools::always;
+    flux_integral_mask(0, 0) = DoFTools::nonzero;
 
     DoFTools::make_flux_sparsity_pattern(dof_handler, dynamic_sparsity_pattern,
                                          cell_integral_mask, flux_integral_mask);

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.