bug fix with only reading first batch of .trajectory files when plotting multiple dumps#125
Conversation
…ing multiple dumps (thanks to Elisa Castro Martinez for reporting
📝 WalkthroughWalkthrough
ChangesFilename placeholder support in exact.f90
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a new subroutine resolve_exact_filename to resolve %f and %p placeholders in exact solution filenames, allowing trajectory and profile paths to update dynamically for each dump. The review feedback highlights two key issues: a potential out-of-bounds substring reference in resolve_exact_filename when idash <= 1 which could trigger runtime crashes, and global state pollution caused by modifying the global variable iCalculateExactErrors inside read_exactparams.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/exact.f90`:
- Around line 365-370: Update the print statement's prompt message on line 365
to advertise both the `%f` and `%p` placeholders. Currently the message only
mentions `%f` for the current dump file, but the `resolve_exact_filename`
function now supports `%p` for trajectory/profile representation as well. Modify
the prompt text to document both available placeholder options so interactive
users can discover and utilize the new `%p` functionality.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
thanks to Elisa Castro Martínez for reporting...
Summary by CodeRabbit
New Features
Improvements