Skip to content

Fix #1351: expand include file paths in input loops - #1427

Open
mchamberland wants to merge 2 commits into
nrc-cnrc:developfrom
mchamberland:nrc/issue-1351-include-loop-vars
Open

Fix #1351: expand include file paths in input loops#1427
mchamberland wants to merge 2 commits into
nrc-cnrc:developfrom
mchamberland:nrc/issue-1351-include-loop-vars

Conversation

@mchamberland

@mchamberland mchamberland commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes nrc-cnrc/EGSnrc#1351.

Test plan

  • Rebuild libegspp and egs_app from $EGS_HOME
  • Run pegsless (no -p): cd $EGS_HOME/egs_app && ./egs_app -i slab_include_loop
  • Confirm log shows Processing input loop, pegsless cross sections, and both dose and tracks ausgab objects
  • Confirm simulation completes without failed to add content from include file .../$(obj).inc

Made with Cursor

mchamberland and others added 2 commits June 27, 2026 19:50
Apply egsExpandPath() when opening include file paths in
addContentFromFile() and inline include file handling, matching
behaviour of other egs++ file-path inputs. Document syntax in PIRS-898.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ar) substitution.

Defer inlining when an include path contains loop variables, then open files
via egsExpandPath once each iteration is expanded. Add a pegsless egs_app
example input and ausgab include fragments for manual testing.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mchamberland
mchamberland requested a review from a team as a code owner June 28, 2026 01:09
@ftessier ftessier added this to the Release 2027 milestone Jul 15, 2026
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.

2 participants