Commit fe2acad8 authored by Max Kahnt's avatar Max Kahnt
Browse files

Fix compiler errors: add missing includes and std qualifiers.

parent c74a5ae6
Pipeline #6074 failed with stage
in 45 seconds
......@@ -4,6 +4,7 @@
#define DUNE_TNNMG_LOCALSOLVERS_SIMPLEXSOLVER_HH
#include <algorithm>
#include <cmath>
#include <functional>
#include <numeric>
......@@ -136,7 +137,7 @@ struct SimplexSolver {
DUNE_THROW(MathError, "ScaledIdentity scaling must be positive.");
for (auto&& ui : f.upperObstacle())
assert(isinf(ui) && "Upper obstacle must be infinity.");
assert(std::isinf(ui) && "Upper obstacle must be infinity.");
auto&& l = f.lowerObstacle();
auto s = std::accumulate(l.begin(), l.end(), r_, std::minus<R>());
......
......@@ -81,7 +81,7 @@ int main(int argc, char** argv) try {
x = std::numeric_limits<Field>::quiet_NaN();
solver(x, f, ignore);
for (auto&& xi : x)
passed = passed and isnan(xi);
passed = passed and std::isnan(xi);
for (size_t i = 0; i < N; ++i)
ignore[i] = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment