Skip to content
Snippets Groups Projects
Commit 1ecde728 authored by Christian Engwer's avatar Christian Engwer
Browse files

[!214] [VariableBlockVector] Fix test

Merge branch 'bugfix/fix-vbvectortest' into 'master'

ref:core/dune-istl Formerly, this would throw an exception if

DUNE_ISTL_WITH_CHECKING

is enabled since you must not call a create iterator on an initialized
VariableBlockVector.

That being said, maybe it's a good idea to enable these checks in the CI
system.

See merge request [core/dune-istl!214]

  [core/dune-istl!214]: gitlab.dune-project.org/core/dune-istl/merge_requests/214
parents abf2d7ba 38781b2e
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,15 @@ int main()
v3 = v4;
/*
v3 is now fully initialized due to the former copy operation with
the initialized vector v4.
Calling the create iterator is not allowed, now.
We have to un-initialize it first:
*/
v3.resize(20); // this makes v3 unitialized again
// Set block sizes with CreateIterator:
for (auto cIt = v3.createbegin(); cIt!=v3.createend(); ++cIt)
cIt.setblocksize(3);
......
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