Fixing Custom Objective Function for Unsteady Adjoint #2587
Fixing Custom Objective Function for Unsteady Adjoint #2587ErcanUmut60 wants to merge 19 commits intosu2code:developfrom
Conversation
pcarruscag
left a comment
There was a problem hiding this comment.
This file is generated via a script, we need to fix or update that script, otherwise the next time someone uses it it will break the custom objective again.
Okay I will look into it but do you mean it is generated during build/install? When I look into source code the file is inside /SU2_PY/SU2/io. |
|
check SU2_PY/updateHistoryMap.py |
…. function and write it into historyMap.py
|
I did some changes in the python file so it can read custom obj. func. from the CFlowOutput.cpp. |
removing json from import.
|
If you run the python script updatehistorymap.py, does it generate the correct, updated, historymap? |
Yes, I tried with Tutorials. There is no problem. |
|
@ErcanUmut60 If you (and the checks) are ready, you can 'squash and merge'. |
I don't see an option for merging the PR. I thought only maintainers were able to do that. |
|
@pcarruscag we merge this PR or not? |
|
Some tests are failing, I was not able to figure out why. |
|
Hey @pcarruscag and @bigfooted, I was looking into why this PR has been stuck since January and traced the ReverseOMP failure back to a transient network error during the git submodule clone . Verified Locally Today
Note: local test was on a research HPC node ConclusionThe January failure looks like a dropped connection mid-clone to me. The folder was left empty, which made it surface as a compilation error. PR #2746 this week showed the identical pattern — same code, CI failed 5 consecutive times then passed on retry — suggesting CI intermittently drops GitLab submodule clones. The code here was approved by @pcarruscag in October 2025. If it seems reasonable, would a maintainer be open to re-running the ReverseOMP check? |
|
Sure, that was not the issue, the workflows are running. |
|
Quite sure I've seen this issue before: |
Defining Custom Objective Function does not work with shape_optimization.py. historyMap.py is updated in order to fix the problem.
pre-commit run --allto format old commits.