Skip to content
Snippets Groups Projects
Commit 7d263606 authored by Markus Blatt's avatar Markus Blatt
Browse files

do not use nonzeroes as it might falsely return zero

[[Imported from SVN: r1287]]
parent f7831b73
No related branches found
No related tags found
No related merge requests found
......@@ -162,8 +162,6 @@ namespace Dune {
guess = indexMap.insert(guess,
std::make_pair(*rowIdx,localIndex));
// Build Matrix for local subproblem
ILU.setSize(rowSet.size(),rowSet.size());
// Build Matrix for local subproblem
ILU.setSize(rowSet.size(),rowSet.size());
......@@ -229,7 +227,7 @@ namespace Dune {
void ILUNSubdomainSolver<M,X,Y>::setSubMatrix(const M& A, S& rowSet)
{
std::size_t offset=copyToLocalMatrix(A,rowSet);
RILU.setSize(rowSet.size(),rowSet.size(), (this->ILU.nonzeroes()/rowSet.size()+2*offset)*rowSet.size());
RILU.setSize(rowSet.size(),rowSet.size(), (1+2*offset)*rowSet.size());
RILU.setBuildMode(matrix_type::row_wise);
bilu_decomposition(this->ILU, (offset+1)/2, RILU);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment