Skip to content

write input file contents at the top of each output per-problem#61

Merged
markleader merged 1 commit intonasa:mainfrom
markleader:fix/legacy_cli_print_input
Mar 18, 2026
Merged

write input file contents at the top of each output per-problem#61
markleader merged 1 commit intonasa:mainfrom
markleader:fix/legacy_cli_print_input

Conversation

@markleader
Copy link
Contributor

Summary

Echo each problem's original input block at the top of the corresponding legacy CLI .out section, independent of problem type.

Changes

  • Added ProblemDB%raw_input to preserve the original per-problem input text during parsing.
  • Updated read_problem to capture each problem block's raw input while keeping existing parsing behavior unchanged.
  • Added a main.f90 output helper that writes the stored input block before equilibrium, rocket, shock, and detonation output sections.

Testing

  • Ran focused CLI checks:
    • ./build-dev/source/cea test/main_interface/example1
    • ./build-dev/source/cea test/main_interface/example8
    • ./build-dev/source/cea test/main_interface/example7
    • ./build-dev/source/cea test/main_interface/example6
  • Ran regression script: python test/main_interface/test_main.py
    • Result: 13/14 tests passed; existing example11 mismatch remained unchanged

Compatibility / Numerical behavior

  • No expected changes to numerical results
  • Expected changes (explain and provide validation)

@markleader markleader merged commit ce9ed9e into nasa:main Mar 18, 2026
22 checks passed
@markleader markleader deleted the fix/legacy_cli_print_input branch March 18, 2026 19:37
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.

[feature] Legacy CLI: reproduce input problem test at the top of the output file

1 participant