Skip to content

Commit

Permalink
Fixed issue AttributeError: 'tuple' object has no attribute 'keys' de…
Browse files Browse the repository at this point in the history
…rived from line 314 of file FSIInterface.py
  • Loading branch information
huynguyen2909 committed Oct 12, 2024
1 parent 0e1495c commit c770d87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file added FSIInterface.py:Zone.Identifier
Empty file.
3 changes: 2 additions & 1 deletion SU2_PY/FSI_tools/FSIInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ def connect(self, FSI_config, FluidSolver, SolidSolver):
if not allMovingMarkersTags:
raise Exception("No interface for FSI was defined.")
else:
if allMovingMarkersTags[0] in allMarkersID.keys():
allMarkersID = {marker: idx for idx, marker in enumerate(allMarkersID)} #added!!!!
if allMovingMarkersTags[0] in allMarkersID.keys(): #comment: if u want this line works, add the line above
self.fluidInterfaceIdentifier = allMarkersID[
allMovingMarkersTags[0]
]
Expand Down

0 comments on commit c770d87

Please sign in to comment.