Skip to content

Fix interface includes after directory split - #2936

Open
whahnsr wants to merge 10 commits into
su2code:developfrom
whahnsr:fix-interface-include-paths
Open

whahnsr wants to merge 10 commits into
su2code:developfrom
whahnsr:fix-interface-include-paths

Conversation

@whahnsr

@whahnsr whahnsr commented Sep 28, 2026 •

Copy link
Copy Markdown

Proposed Changes

Correct three relative include paths affected by the deeper cfd and fsi
interface directory structure.

In my local build of the current develop branch, the compiler could not
locate C2DContainer.hpp and CInterpolator.hpp through these relative
include paths.

Related Work

Found while preparing and profiling a fresh build of the current develop
branch.

Generative AI usage

OpenAI Codex assisted with diagnosis, validation, and preparation of this
change.

Co-authored-by: OpenAI Codex noreply@openai.com

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. Not necessary; this repairs compilation.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary. Not necessary.

Test Results

Configured with Meson at warning level 3 and built and installed successfully
with GCC 13.3.0 after the include paths were corrected.

Co-authored-by: OpenAI Codex <noreply@openai.com>

@joshkellyjak joshkellyjak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This falls deeply into the category of 'technically correct' but your assertion that serial builds will fail is wrong.

@whahnsr

whahnsr commented Oct 2, 2026

Copy link
Copy Markdown
Author

Thanks for the correction. The build failure was what I observed in my local configuration, and I generalized that too broadly to serial builds in general. I'll update the description accordingly. The include paths themselves were the issue I intended to correct.

@bigfooted

Copy link
Copy Markdown
Contributor

While you're at it, can you check all the other relative paths on correctness? We might as well fix all of them.

@whahnsr

whahnsr commented Oct 9, 2026

Copy link
Copy Markdown
Author

I've checked all 852 relative #include directives in SU2_CFD and found one additional incorrect path in SU2_CFD/include/fluid/CFluidFlamelet.hpp. Four initially unresolved includes were verified as valid references to the MLPCpp submodule.

Would you like me to extend the audit to the entire SU2 repository, or is checking SU2_CFD sufficient?

Correct the relative path to CLookUpTable.hpp in
SU2_CFD/include/fluid/CFluidFlamelet.hpp.

The original path resolved to
SU2_CFD/Common/include/containers/CLookUpTable.hpp,
which does not exist.

The corrected path resolves to
Common/include/containers/CLookUpTable.hpp.

Verification:
- Audited 852 relative includes in SU2_CFD.
- Identified four valid MLPCpp submodule references.
- Confirmed the corrected target header exists.
- Passed a C++17 syntax-only compilation of CFluidFlamelet.cpp.
- Successfully compiled CFluidFlamelet.cpp to an object file
  using the existing Meson-generated compiler command.
- git diff --check passed.

The full SU2 build and regression tests were not run.
@whahnsr

whahnsr commented Oct 9, 2026

Copy link
Copy Markdown
Author

Additional verification for commit 6be2b8d:

The existing local Meson/Ninja build directory contained an obsolete
absolute source path following relocation of the SU2 checkout. This
prevented Ninja from regenerating its build configuration.

Verification performed:

  • Audited 852 relative include directives in SU2_CFD.
  • Confirmed four apparent unresolved includes refer to the MLPCpp submodule.
  • Corrected the relative path to Common/include/containers/CLookUpTable.hpp.
  • Successfully compiled CFluidFlamelet.cpp to an object file using
    the existing Meson-generated compiler command.
  • Successfully repeated the C++17 syntax-only compilation after rebasing
    onto the updated PR branch.
  • Verified that git diff --check reports no whitespace errors.

The complete SU2 build and regression tests were not run.

@joshkellyjak

Copy link
Copy Markdown
Contributor

I think it makes more sense to check the entire repo

@whahnsr

whahnsr commented Nov 15, 2026

Copy link
Copy Markdown
Author

The full-repository include-path audit requested by Josh is complete.

Examined 1,787 C/C++ source and header files and checked 1,355 relative includes, including all 852 in SU2_CFD.

Identified and corrected one additional defective include in ParMETIS (commit 2ee20bb). Verified with mpicc -fsyntax-only. No other confirmed source defects were found. A full rebuild remains outstanding.

Four GitHub Actions workflows appear to have expired after 30 days without completing validation.

Could the maintainers please approve or restart CI and review the updated PR?

Thank you.

@whahnsr

whahnsr commented Nov 28, 2026

Copy link
Copy Markdown
Author

Thank you for the review. I agree that changes to third-party code should be handled upstream.

I've removed the ParMETIS modification in commit ad09129, leaving only the four corrections to SU2's own source files.

The repository-wide audit found no other confirmed include-path defects.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants