Skip to content
Snippets Groups Projects
Commit fe2acad8 authored by Max Kahnt's avatar Max Kahnt
Browse files

Fix compiler errors: add missing includes and std qualifiers.

parent c74a5ae6
Branches
No related tags found
1 merge request!3Feature/new tnnmg simplex solver
Pipeline #
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#define DUNE_TNNMG_LOCALSOLVERS_SIMPLEXSOLVER_HH #define DUNE_TNNMG_LOCALSOLVERS_SIMPLEXSOLVER_HH
#include <algorithm> #include <algorithm>
#include <cmath>
#include <functional> #include <functional>
#include <numeric> #include <numeric>
...@@ -136,7 +137,7 @@ struct SimplexSolver { ...@@ -136,7 +137,7 @@ struct SimplexSolver {
DUNE_THROW(MathError, "ScaledIdentity scaling must be positive."); DUNE_THROW(MathError, "ScaledIdentity scaling must be positive.");
for (auto&& ui : f.upperObstacle()) 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&& l = f.lowerObstacle();
auto s = std::accumulate(l.begin(), l.end(), r_, std::minus<R>()); auto s = std::accumulate(l.begin(), l.end(), r_, std::minus<R>());
......
...@@ -81,7 +81,7 @@ int main(int argc, char** argv) try { ...@@ -81,7 +81,7 @@ int main(int argc, char** argv) try {
x = std::numeric_limits<Field>::quiet_NaN(); x = std::numeric_limits<Field>::quiet_NaN();
solver(x, f, ignore); solver(x, f, ignore);
for (auto&& xi : x) for (auto&& xi : x)
passed = passed and isnan(xi); passed = passed and std::isnan(xi);
for (size_t i = 0; i < N; ++i) for (size_t i = 0; i < N; ++i)
ignore[i] = false; ignore[i] = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment