Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
c7ff7699
Commit
c7ff7699
authored
Oct 18, 2021
by
Timo Koch
Browse files
[md][couplingmanager] Fix nullptr initialization of problem
Remove unncessary capture for init lambda functions
parent
ea8cba42
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/multidomain/couplingmanager.hh
View file @
c7ff7699
...
...
@@ -92,11 +92,11 @@ public:
CouplingManager
()
{
using
namespace
Dune
::
Hybrid
;
forEach
(
problems_
,
[
&
](
const
auto
*
problem
){
forEach
(
problems_
,
[](
auto
&
problem
){
problem
=
nullptr
;
});
forEach
(
curSols_
,
[
&
](
auto
&
&
solutionVector
){
forEach
(
curSols_
,
[](
auto
&
solutionVector
){
solutionVector
=
std
::
make_shared
<
typename
std
::
decay_t
<
decltype
(
solutionVector
)
>::
element_type
>
();
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment