Skip to content
Snippets Groups Projects
Commit 807bd921 authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[Bugfix][BCRSMatrix] Improve error message when trying to copy-construct an incomplete matrix

parent b50b3758
No related branches found
No related tags found
No related merge requests found
......@@ -759,7 +759,7 @@ namespace Dune {
avg(Mat.avg), overflowsize(Mat.overflowsize)
{
if (!(Mat.ready == notAllocated || Mat.ready == built))
DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copied when both target and source are empty or fully built)");
DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copy-constructed when source matrix is completely empty (size not set) or fully built)");
// deep copy in global array
size_type _nnz = Mat.nnz;
......
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