Conversation
|
This pull request introduces 2 alerts and fixes 19 when merging 0cf08d4 into c2c78e2 - view on LGTM.com new alerts:
fixed alerts:
|
|
Dear @pcarruscag, thank you very much for the review. I implemented the modification you suggested and corrected the indentation (sorry about that...) |
|
This pull request introduces 2 alerts and fixes 19 when merging 4ecf3ea into c2c78e2 - view on LGTM.com new alerts:
fixed alerts:
|
TobiKattmann
left a comment
There was a problem hiding this comment.
Thanks @Nicola-Fonzi 💐 of course I cannot say anything content-wise but here are a few little spots I can nag about
| return len(self.markers[markerID]) | ||
|
|
||
| def getInterfaceNodeGlobalIndex(self, markerID, iVertex): | ||
| def getVertexGlobalIndex(self, markerID, iVertex): # TODO This solver is serial, thus global=local |
There was a problem hiding this comment.
Are the TODO on your list to be tackled next? I would rather error-check and document the state then to write a TODO in the code
There was a problem hiding this comment.
Hi Tobi! Thank you very much for your time. Yes, you are right... TODOs in the code are ugly. They are definitely being tackled right now, this is why they are there, but I can remove them and just keep a note.
| if self.Config["RESTART_SOL"] == "NO": # If yes we already set it in the __setRestart function | ||
| self.timeStartCoupling = time |
There was a problem hiding this comment.
| if self.Config["RESTART_SOL"] == "NO": # If yes we already set it in the __setRestart function | |
| self.timeStartCoupling = time | |
| if self.Config["RESTART_SOL"] == "NO": | |
| # If yes we already set it in the __setRestart function | |
| self.timeStartCoupling = time | |
There was a problem hiding this comment.
I am not sure whether a comment 20 spaces away is the best thing todo, I would rather have it close to its partner lines
| for key in self.FluidHaloNodeList[iProc].keys(): # The key is the SU2 global | ||
| globalIndex = self.fluidIndexing[key] # This is the interface global, not the SU2 global |
There was a problem hiding this comment.
Not that I would understand what is going on but # The key is the SU2 global sounds like there is sth missing.
There was a problem hiding this comment.
you mean that it should be "the keys are..."?
There was a problem hiding this comment.
Hm, no I think more sth like
# The key is the SU2 global >node ID<in case that makes any sense... That is the whole point :) I dont know what SU2 global alone should mean. I just had the feeling there was a noun missing (like e.g. node ID), not that I know it is missing.
Treat it more like a question: Is this sentence correct? If yes, then leave it as is 👍
There was a problem hiding this comment.
I see what you mean. No the comment was actually saying that each key in the dictionary consists of the global ID of an interface node. However, from your question, I feel it was not really clear... I try to clarify
Proposed Changes
Dear all,
Here are some updates for the python fsi interface.
Namely:
PR Checklist