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

[bugfix] Copy the number of rows in the copy constructor.

Due to the latest changes the number of rows was not copied correctly
in all cases.This patch introduces the old behaviour.
Should fix FS #1394.
parent a7c65e5d
No related branches found
No related tags found
No related merge requests found
......@@ -754,7 +754,7 @@ namespace Dune {
* Does a deep copy as expected.
*/
BCRSMatrix (const BCRSMatrix& Mat)
: build_mode(Mat.build_mode), ready(notAllocated), n(0), m(0), nnz(0),
: build_mode(Mat.build_mode), ready(notAllocated), n(Mat.n), m(0), nnz(0),
allocationSize(0), r(0), a(0),
avg(Mat.avg), overflowsize(Mat.overflowsize)
{
......
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