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

[BCRSMatrix] Prevent changing the implicit build mode parameters after matrix...

[BCRSMatrix] Prevent changing the implicit build mode parameters after matrix construction has started
parent 09aea842
No related branches found
No related tags found
No related merge requests found
......@@ -853,6 +853,10 @@ namespace Dune {
// have not been set yet
if (_overflow < 0.0)
DUNE_THROW(BCRSMatrixError,"You cannot set a negative overflow fraction");
// make sure the parameters aren't changed after memory has been allocated
if (ready != notAllocated)
DUNE_THROW(InvalidStateException,"You cannot modify build mode parameters at this stage anymore");
avg = _avg;
overflowsize = _overflow;
}
......
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