Skip to content

Fix option names in config_template.cfg that SU2 does not accept - #2904

Closed
ManasBagul23 wants to merge 1 commit into
su2code:developfrom
ManasBagul23:fix-config-template-options
Closed

ManasBagul23 wants to merge 1 commit into
su2code:developfrom
ManasBagul23:fix-config-template-options

Conversation

@ManasBagul23

@ManasBagul23 ManasBagul23 commented Sep 16, 2026

Copy link
Copy Markdown

Proposed Changes

Eight options in config_template.cfg are rejected by SU2_CFD with invalid option name, so a config copied from the template does not run:

Template Problem Change
NETTHRUST_DBCTHRUST misspelled DNETTHRUST_DBCTHRUST
HOLD_GRID_FIXED_COORDS misspelled HOLD_GRID_FIXED_COORD
DEFORM_POISSON_RATIO misspelled DEFORM_POISSONS_RATIO
BUFFET_MONITORING removed from CConfig, sensor is always computed for viscous flows removed, comment updated
SINGLEZONE_DRIVER deprecated, CConfig reports it as invalid removed
SMOOTH_GEOMETRY removed in #2427 removed
THERMAL_DIFFUSIVITY removed from CConfig removed
IGNITION_TEMPERATURE never registered; the flame thickness threshold is FLAME_INIT_IGNITION (Flame_T_ignition) removed, description moved to FLAME_INIT_IGNITION

After this change every option in the template is registered in CConfig.cpp on develop.

Related Work

Closes #2914.

IGNITION_TEMPERATURE came in with #2733.

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

Eight options in the template are rejected with "invalid option name":

- NETTHRUST_DBCTHRUST, HOLD_GRID_FIXED_COORDS and DEFORM_POISSON_RATIO
  are misspellings of DNETTHRUST_DBCTHRUST, HOLD_GRID_FIXED_COORD and
  DEFORM_POISSONS_RATIO.
- BUFFET_MONITORING, SINGLEZONE_DRIVER, SMOOTH_GEOMETRY and
  THERMAL_DIFFUSIVITY were removed from CConfig.
- IGNITION_TEMPERATURE was never registered; the flame thickness
  threshold it describes is FLAME_INIT_IGNITION, so that description
  is moved there.
Copilot AI lite review requested due to automatic review settings September 16, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Python config reader still injects BUFFET_MONITORING, which CConfig now rejects.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates config_template.cfg to use valid SU2 option names and remove unsupported entries.

Changes:

  • Corrects misspelled option names.
  • Removes deprecated or unregistered options.
  • Updates buffet and flame ignition documentation.
File summaries
File Description
config_template.cfg Aligns template options and descriptions with current SU2 configuration support.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread config_template.cfg
Comment on lines +667 to +669
% The Kenway-Martins separation sensor for buffet-onset detection is computed
% on Navier-Stokes markers. If BUFFET objective/constraint is specified, the
% objective is given by the integrated sensor normalized by reference area

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python side (the key injected in SU2_PY/SU2/io/config.py) is fixed in #2905, so the two PRs together cover both places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants