Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b9d935f
fix(SU2_PY): Fix Custom Objective Function for Unsteady Adjoint
shbhmexe Dec 28, 2025
048bb4d
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Dec 28, 2025
e50bd95
Update historyMap.py
shbhmexe Dec 28, 2025
840dfff
fix(SU2_CFD,SU2_PY): Fix Custom Objective Function for Unsteady Adjoint
shbhmexe Dec 28, 2025
aa0056c
fix(SU2_PY): Regenerate historyMap.py with updated script
shbhmexe Dec 29, 2025
5401eb6
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Dec 29, 2025
1d060f2
fix(SU2_PY): Regenerate historyMap.py with fixed custom writer logic
shbhmexe Dec 30, 2025
10d6803
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Dec 30, 2025
cc53b11
revert: Restore updateHistoryMap.py and historyMap.py to develop version
shbhmexe Dec 30, 2025
b52e23e
fix(SU2_CFD,SU2_PY): Fix Custom Objective Function for Unsteady Adjoint
shbhmexe Jan 1, 2026
668153c
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Jan 1, 2026
4fba057
fix(SU2_CFD,SU2_PY): Fix Custom Objective Function for Unsteady Adjoint
shbhmexe Jan 1, 2026
ff83fe4
Fix regression failures by parsing CUSTOM_OBJFUNC in historyMap.py
shbhmexe Jan 3, 2026
babc8ab
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Jan 3, 2026
ccd5b27
Refactor updateHistoryMap.py to use f-strings and fix formatting
shbhmexe Jan 3, 2026
a38660d
Apply strict black formatting to updateHistoryMap.py and historyMap.py
shbhmexe Jan 3, 2026
3210bb8
fix(SU2_PY): preserve history map insertion order so COMBO overrides …
shbhmexe Jan 4, 2026
d7d3d33
Merge branch 'develop' into verify-pr-2587-clean
shbhmexe Jan 4, 2026
8fb8e20
fix(SU2_PY): expose COMBO history as CUSTOM_OBJFUNC in Python
shbhmexe Jan 4, 2026
7c856ec
fix(SU2_PY): Fix Custom Objective Function for Unsteady Adjoint
shbhmexe Jan 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SU2_CFD/src/output/CFlowOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,9 @@ void CFlowOutput::AddAerodynamicCoefficients(const CConfig* config) {

/// DESCRIPTION: Angle of attack
AddHistoryOutput("AOA", "AoA", ScreenOutputFormat::FIXED, "AOA", "Angle of attack");


// CUSTOM_OBJFUNC is added here so historyMap.py knows how to get its value, the actual output is COMBO.
if (false) AddHistoryOutput("CUSTOM_OBJFUNC", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Custom obj. function value.", HistoryFieldType::COEFFICIENT);
AddHistoryOutput("COMBO", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Combined obj. function value.", HistoryFieldType::COEFFICIENT);
}

Expand Down
7 changes: 7 additions & 0 deletions SU2_PY/SU2/io/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ def read_aerodynamics(
)
Func_Values[key] = value[-1]

# If only COMBO is present in the history (which is the case when using
# CUSTOM_OBJFUNC as objective), expose it also under the logical
# name CUSTOM_OBJFUNC so that SU2.eval.functions(function_name="CUSTOM_OBJFUNC")
# can retrieve the value without needing a separate history column.
if "COMBO" in Func_Values and "CUSTOM_OBJFUNC" not in Func_Values:
Func_Values["CUSTOM_OBJFUNC"] = Func_Values["COMBO"]

return Func_Values


Expand Down