Skip to content

Commit

Permalink
cmp - clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioperez committed Aug 27, 2024
1 parent b143c74 commit aedb5ed
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 @@ -399,8 +399,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 aedb5ed

Please sign in to comment.