x *= 1. / length;
// Main loop
- double res = -std::numeric_limits<double>::max();
+ double res = std::numeric_limits<double>::lowest();
size_type iter = 0;
for (; conv == SolverControl::iterate; iter++)
{
unsigned int dim = 0;
SolverControl::State iteration_state = SolverControl::iterate;
- double last_res = -std::numeric_limits<double>::max();
+ double last_res = std::numeric_limits<double>::lowest();
// switch to determine whether we want a left or a right preconditioner. at
// present, left is default, but both ways are implemented
Vector<double> y;
// Iteration starts here
- double res = -std::numeric_limits<double>::max();
+ double res = std::numeric_limits<double>::lowest();
typename VectorMemory<VectorType>::Pointer aux(this->memory);
aux->reinit(x);
{
SolverControl::State conv = SolverControl::iterate;
- double last_criterion = -std::numeric_limits<double>::max();
+ double last_criterion = std::numeric_limits<double>::lowest();
unsigned int iter = 0;
const PreconditionerType &preconditioner)
{
SolverControl::State conv = SolverControl::iterate;
- double last_criterion = -std::numeric_limits<double>::max();
+ double last_criterion = std::numeric_limits<double>::lowest();
unsigned int iter = 0;
default:
{
Assert(false, ExcNotImplemented());
- return -std::numeric_limits<double>::max();
+ return std::numeric_limits<double>::lowest();
}
}
}
default:
{
Assert(false, ExcNotImplemented());
- return -std::numeric_limits<double>::max();
+ return std::numeric_limits<double>::lowest();
}
}
}
default:
{
Assert(false, ExcNotImplemented());
- return -std::numeric_limits<double>::max();
+ return std::numeric_limits<double>::lowest();
}
}
}
default:
{
Assert(false, ExcNotImplemented());
- return -std::numeric_limits<double>::max();
+ return std::numeric_limits<double>::lowest();
}
}
}
// result with a default value already...
MinMaxAvg dummy = {0.,
std::numeric_limits<double>::max(),
- -std::numeric_limits<double>::max(),
+ std::numeric_limits<double>::lowest(),
0,
0,
0.};
- const double Double::min_double_value = -std::numeric_limits<double>::max();
+ const double Double::min_double_value = std::numeric_limits<double>::lowest();
const double Double::max_double_value = std::numeric_limits<double>::max();
const char *Double::description_init = "[Double";
if (refine_cells)
{
if (static_cast<size_t>(refine_cells) == criteria.size())
- refine(tria, criteria, -std::numeric_limits<double>::max());
+ refine(tria, criteria, std::numeric_limits<double>::lowest());
else
{
std::nth_element(tmp.begin(),
double min_spurious_eigenvalue = std::numeric_limits<double>::max(),
- max_spurious_eigenvalue = -std::numeric_limits<double>::max();
+ max_spurious_eigenvalue = std::numeric_limits<double>::lowest();
for (unsigned int i = 0; i < dof_handler.n_dofs(); ++i)
if (constraints.is_constrained(i))
double min_spurious_eigenvalue = std::numeric_limits<double>::max(),
- max_spurious_eigenvalue = -std::numeric_limits<double>::max();
+ max_spurious_eigenvalue = std::numeric_limits<double>::lowest();
for (unsigned int i = 0; i < dof_handler.n_dofs(); ++i)
if (constraints.is_constrained(i))
double min_spurious_eigenvalue = std::numeric_limits<double>::max(),
- max_spurious_eigenvalue = -std::numeric_limits<double>::max();
+ max_spurious_eigenvalue = std::numeric_limits<double>::lowest();
for (unsigned int i = 0; i < dof_handler.n_dofs(); ++i)
if (constraints.is_constrained(i))
if (timestep_number != 0)
{
double min_temperature = std::numeric_limits<double>::max(),
- max_temperature = -std::numeric_limits<double>::max();
+ max_temperature = std::numeric_limits<double>::lowest();
for (const auto &cell : temperature_dof_handler.active_cell_iterators())
{
fe_values.reinit(cell);
else
{
double min_temperature = std::numeric_limits<double>::max(),
- max_temperature = -std::numeric_limits<double>::max();
+ max_temperature = std::numeric_limits<double>::lowest();
for (const auto &cell : temperature_dof_handler.active_cell_iterators())
{
fe_values.reinit(cell);