Skip to content
Snippets Groups Projects
Commit 2e28a5e3 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Do not check for zero entries when restricting occupation patterns.

Because some people restrict patterns for uninitialized matrices.
In that case you get
a) valgrind warnings
b) crashes, if an entry happens to be zero, it is not restricted.

[[Imported from SVN: r6332]]
parent 965a5731
No related branches found
No related tags found
No related merge requests found
...@@ -770,8 +770,6 @@ public: ...@@ -770,8 +770,6 @@ public:
for (; m!=mEnd; ++m) for (; m!=mEnd; ++m)
{ {
if (m->infinity_norm()==0)
continue;
int w = m.index(); int w = m.index();
// Loop over all coarse grid vectors iv that have v in their support // Loop over all coarse grid vectors iv that have v in their support
...@@ -831,8 +829,6 @@ public: ...@@ -831,8 +829,6 @@ public:
for (; m!=mEnd; ++m) for (; m!=mEnd; ++m)
{ {
if (m->infinity_norm()==0)
continue;
int w = m.index(); int w = m.index();
int w_block = w/virtualBlockSize; int w_block = w/virtualBlockSize;
int w_inblock = w%virtualBlockSize; int w_inblock = w%virtualBlockSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment