Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Feb 4, 2022
1 parent 3e8152e commit 9f5881f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyNite/FEModel3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def add_mesh(self, mesh, rename=True):
self.Nodes[node.Name] = node
else:
# Get the next available node name and rename the node
new_name = 'N' + str(len(self.Nodes + 1))
new_name = 'N' + str(len(self.Nodes) + 1)
node.Name = new_name
self.Nodes[new_name] = node

Expand All @@ -422,7 +422,7 @@ def add_mesh(self, mesh, rename=True):
self.Plates[element.Name] = element
else:
# Get the next available element name and rename the element
new_name = 'P' + str(len(self.Plates + 1))
new_name = 'P' + str(len(self.Plates) + 1)
element.Name = new_name
self.Plates[new_name] = element

Expand All @@ -434,7 +434,7 @@ def add_mesh(self, mesh, rename=True):
self.Quads[element.Name] = element
else:
# Get the next available element name and rename the element
new_name = 'Q' + str(len(self.Quads + 1))
new_name = 'Q' + str(len(self.Quads) + 1)
element.Name = new_name
self.Quads[new_name] = element

Expand Down

0 comments on commit 9f5881f

Please sign in to comment.