]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace a few types_are_equal by std::is_same 9657/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Mar 2020 09:25:12 +0000 (10:25 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Mar 2020 09:25:12 +0000 (10:25 +0100)
tests/matrix_free/get_functions_common.h
tests/matrix_free/matrix_vector_faces_common.h
tests/matrix_free/parallel_multigrid_adaptive_06.cc
tests/matrix_free/parallel_multigrid_adaptive_06ref.cc
tests/matrix_free/parallel_multigrid_adaptive_07.cc

index 394dc3cd1aa7ce7d86e555ca2ca6743b3f27a1a6..0d85d7a85753d5fa46cd0861a7bb5c2bf541b834 100644 (file)
@@ -161,7 +161,7 @@ public:
 
     // for doubles, use a stricter condition than
     // for floats for the relative error size
-    if (types_are_equal<Number, double>::value == true)
+    if (std::is_same<Number, double>::value == true)
       {
         deallog << "Error function values: " << errors[0] / total[0]
                 << std::endl;
@@ -184,7 +184,7 @@ public:
         const double output4 = total[4] == 0 ? 0. : errors[4] / total[4];
         deallog << "Error function Hessians: " << output4 << std::endl;
       }
-    else if (types_are_equal<Number, float>::value == true)
+    else if (std::is_same<Number, float>::value == true)
       {
         deallog << "Error function values: " << errors[0] / total[0]
                 << std::endl;
index b2e8e1334dfa5a5df01874c1e5b0b31525f08511..7e91396c31aaa7b675a8fb331d8be116cc94bb39 100644 (file)
@@ -761,7 +761,7 @@ do_test(const DoFHandler<dim> &          dof,
         const AffineConstraints<double> &constraints,
         const bool                       also_test_parallel = false)
 {
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     deallog.push("float");
 
   deallog << "Testing " << dof.get_fe().get_name();
@@ -872,7 +872,7 @@ do_test(const DoFHandler<dim> &          dof,
     }
   deallog << std::endl;
 
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     deallog.pop();
 }
 
index d1b7dd2669832efaa0c98ef03a4b2b3b27411759..9cb419eac41f405bd80834643e25fc2e90840cbd 100644 (file)
@@ -209,7 +209,7 @@ template <int dim, int fe_degree, int n_q_points_1d, typename number>
 void
 do_test(const DoFHandler<dim> &dof, const unsigned int nb)
 {
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     {
       deallog.push("float");
     }
@@ -376,7 +376,7 @@ do_test(const DoFHandler<dim> &dof, const unsigned int nb)
     solver.solve(fine_matrix, sol, in, preconditioner);
   }
 
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     deallog.pop();
 
   fine_matrix.clear();
index 438c9b5bd2db27bc1d92a7adca39e65ea84a2136..77b07516a75c0a45bbd41fcb01707804ccbfc3d5 100644 (file)
@@ -125,7 +125,7 @@ template <int dim, int fe_degree, int n_q_points_1d, typename number>
 void
 do_test(const DoFHandler<dim> &dof)
 {
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     {
       deallog.push("float");
     }
@@ -285,7 +285,7 @@ do_test(const DoFHandler<dim> &dof)
     solver.solve(fine_matrix, sol, in, preconditioner);
   }
 
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     deallog.pop();
 
   fine_matrix.clear();
index 600585724fb569c96bcf11811b082e4f0383719b..b48fb53417a474df36650a6e0295541dc2bbcf6f 100644 (file)
@@ -222,7 +222,7 @@ void
 do_test(const std::vector<const DoFHandler<dim> *> &dof)
 {
   const unsigned int nb = 2;
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     {
       deallog.push("float");
     }
@@ -409,7 +409,7 @@ do_test(const std::vector<const DoFHandler<dim> *> &dof)
     solver.solve(fine_matrix, sol, in, preconditioner);
   }
 
-  if (types_are_equal<number, float>::value == true)
+  if (std::is_same<number, float>::value == true)
     deallog.pop();
 
   fine_matrix.clear();

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.