Skip to content

Commit

Permalink
Merge branch 'master' of github.com:claudioperez/opensees
Browse files Browse the repository at this point in the history
  • Loading branch information
wensley-rushing committed Aug 27, 2024
2 parents b171e10 + aedb5ed commit eb5a84c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/opensees/openseespy.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,14 @@ def setFactor(self, factor):

def element(self, type, tag, *args, **kwds):
if tag is None:
tag = 0
for existing_tag in self.getEleTags():
tag = 1
ele_tags = self.getEleTags()
if ele_tags is None:
ele_tags = []
elif isinstance(ele_tags, int):
ele_tags = [ele_tags]

for existing_tag in ele_tags:
if tag <= existing_tag:
tag = existing_tag + 1

Expand Down

0 comments on commit eb5a84c

Please sign in to comment.