// 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;
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;
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();
}
deallog << std::endl;
- if (types_are_equal<number, float>::value == true)
+ if (std::is_same<number, float>::value == true)
deallog.pop();
}
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");
}
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();
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");
}
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();
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");
}
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();