Skip to content
Snippets Groups Projects
Commit e1dd56de authored by Simon Praetorius's avatar Simon Praetorius
Browse files

added 'using namespace' inside generic lambdas to workaround an intel compiler bug

parent 7d028ec5
No related branches found
No related tags found
1 merge request!174added 'using namespace' inside generic lambdas to workaround an intel compiler bug
......@@ -223,6 +223,7 @@ namespace Dune {
ifElse(has_nan<field_type>(), [&](auto&& id) {
// This variable will preserve any nan value
real_type nanTracker = 1.0;
using namespace Dune::Hybrid; // needed for icc, see issue #31
forEach(*this, [&](auto&& entry) {
real_type entryNorm = entry.infinity_norm();
result = max(entryNorm, result);
......@@ -231,6 +232,7 @@ namespace Dune {
// Incorporate possible nan value into result
result *= (nanTracker / nanTracker);
}, [&](auto&& id) {
using namespace Dune::Hybrid; // needed for icc, see issue #31
forEach(*this, [&](auto&& entry) {
result = max(entry.infinity_norm(), result);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment