Skip to content
Snippets Groups Projects
Commit 659cd260 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Ned Coltman
Browse files

[md][newtonsolver] Fix compiler error with c++14

* id is not considered constexpr
parent ccedc0b9
No related branches found
No related tags found
1 merge request!1341[md][newtonsolver] Fix compiler error with c++14
......@@ -109,7 +109,7 @@ public:
using namespace Dune::Hybrid;
forEach(std::make_index_sequence<Assembler::Traits::numSubDomains>{}, [&](auto&& id)
{
resetPriVarSwitch_(u[id].size(), id, HasPriVarsSwitch<id>{});
this->resetPriVarSwitch_(u[id].size(), id, HasPriVarsSwitch<std::decay_t<decltype(id)>::value>{});
});
}
......@@ -138,7 +138,7 @@ public:
using namespace Dune::Hybrid;
forEach(std::make_index_sequence<Assembler::Traits::numSubDomains>{}, [&](auto&& id)
{
invokePriVarSwitch_(uCurrentIter[id], id, HasPriVarsSwitch<id>{});
this->invokePriVarSwitch_(uCurrentIter[id], id, HasPriVarsSwitch<std::decay_t<decltype(id)>::value>{});
});
ParentType::newtonEndStep(uCurrentIter, uLastIter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment