Skip to content
Snippets Groups Projects
Commit 7d5a8fa2 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Merge branch 'issue/intel_compiler_compatibility' into 'master'

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

See merge request core/dune-istl!174
parents 6e1774cf e1dd56de
Branches
Tags
1 merge request!174added 'using namespace' inside generic lambdas to workaround an intel compiler bug
Pipeline #
......@@ -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