Skip to content
Snippets Groups Projects
Commit 8ed8351e authored by Timo Koch's avatar Timo Koch
Browse files

[amg] Fix compiler warning about possibly uninitialized block

parent 85fce383
No related branches found
No related tags found
1 merge request!292[amg] Fix compiler warning about possibly uninitialized block
......@@ -550,7 +550,7 @@ namespace Dune
for(RowIter row=mat.begin(); row!=mat.end(); ++row) {
bool isDirichlet = true;
bool hasDiagonal = false;
Block diagonal;
Block diagonal{};
for(ColIter col=row->begin(); col!=row->end(); ++col) {
if(row.index()==col.index()) {
diagonal = *col;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment