Skip to content
Snippets Groups Projects
Commit e4dec607 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Check length of refine_flags in refiner

parent 9bc48b4f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -348,6 +348,10 @@ class Refiner(object):
indicating which elements should be split.
"""
if len(refine_flags) != self.last_mesh.nelements:
raise ValueError("length of refine_flags does not match "
"element count of last generated mesh")
#vertices and groups for next generation
nvertices = len(self.last_mesh.vertices[0])
......
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