Skip to content
Snippets Groups Projects
Commit 38781b2e authored by Lasse Hinrichsen-Bischoff's avatar Lasse Hinrichsen-Bischoff
Browse files

[VariableBlockVector] Fix test

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.
parent afb68da7
No related branches found
No related tags found
1 merge request!214[VariableBlockVector] Fix test
......@@ -20,6 +20,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