Skip to content
Snippets Groups Projects
Commit b610d52f authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

AMG::pre: set `hasDiagonal` to `true` if diagonal entry exists

Thanks to Nils-Arne Dreier for noticing.

Closes: #55
parent a932af5e
Branches
Tags
1 merge request!236AMG::pre: set `hasDiagonal` to `true` if diagonal entry exists
Pipeline #14260 passed
......@@ -577,7 +577,7 @@ namespace Dune
for(ColIter col=row->begin(); col!=row->end(); ++col) {
if(row.index()==col.index()) {
diagonal = *col;
hasDiagonal = false;
hasDiagonal = true;
}else{
if(*col!=zero)
isDirichlet = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment