Skip to content
Snippets Groups Projects
Commit 8349b4fb authored by Jonathan Youett's avatar Jonathan Youett Committed by Markus Blatt
Browse files

[bugfix] Fixes assignment of BCRSMatrix with nonmatching number of rows.

When assigning a BCRSMatrix to another BCRSMatrix which was setup for
a different size/pattern, it segfaulted and I got the following
Exception:

"InvalidStateException [allocate:.../dune/istl/bcrsmatrix.hh:2108]:
Rows have already been allocated, cannot allocate a second time."

The problem was, that inside the assignment operator the rows (r) were
never deallocated. This commit fixes this and adds a testcase.

Testcase slightly modified by Markus.
parent 01655f01
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment