Skip to content

Codex recommended refactoring for performance fixes.#175

Open
parikshitbajpai wants to merge 10 commits intoORNL-CEES:masterfrom
parikshitbajpai:tc_codex_vibe
Open

Codex recommended refactoring for performance fixes.#175
parikshitbajpai wants to merge 10 commits intoORNL-CEES:masterfrom
parikshitbajpai:tc_codex_vibe

Conversation

@parikshitbajpai
Copy link
Collaborator

The details of the changes are specified in the individual commits but this is overall a Codex driven refactoring to identify code issues and fix them.

- Allocate and persist `GEM_A`, `GEM_B`, and pivot arrays across iterations instead of reallocating
- Slice arrays with current `nVar` to pass correct leading dimensions to LAPACK’s `dgesv`, restoring convergence
- Leave TODO for exploring sparse/structured solvers if Hessians are largely zero
…lored output

- Discover tests automatically with glob pattern (default: TestThermo*)
- Support optional SKIP_TESTS list (empty/unset = no skips)
- Keep running after failures and print summary at the end
- Special-case handling preserved for TestThermo12
- Colorize PASS (green), FAIL (red), and SKIP (yellow) for better readability
Copy link
Collaborator

@dschwen dschwen left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Test 90 is a bit concerning. The failure is specific to the test container. In local builds it passes. Might require some further investigation.

parikshitbajpai and others added 4 commits August 27, 2025 10:20
- Refactored subminimization initialization to call a new helper that resizes workspace arrays, ensuring they are reallocated whenever the considered phase’s species count changes
- Added `ResizeSubMinWorkspace`, which allocates dHessian, iHessian, and dRHS to nVar + offset based on whether the phase is neutral or ionic
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