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

Fix MeshElementGroup.copy() to return un-mesh-joined group

parent f3cafc93
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,13 @@ class MeshElementGroup(Record):
unit_nodes=unit_nodes,
element_nr_base=element_nr_base, node_nr_base=node_nr_base)
def copy(self, **kwargs):
if "element_nr_base" not in kwargs:
kwargs["element_nr_base"] = None
if "node_nr_base" not in kwargs:
kwargs["node_nr_base"] = None
return Record.copy(self, **kwargs)
@property
def dim(self):
return self.unit_nodes.shape[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