Fix bug in ScfSolver for ROHF stability check#433
Conversation
There was a problem hiding this comment.
Pull request overview
Updates SCF solver logic so the ROHF (restricted open-shell) path uses the same initial-guess validation previously applied only to UHF, addressing a stability-check bug in ROHF runs.
Changes:
- Adds an
is_restricted_open_shellflag forSCFOrbitalType::RestrictedOpenShell - Expands the “unrestricted” conditional block to also execute for ROHF
- Ensures restricted initial guesses trigger the same warning when an unrestricted-like orbital treatment is requested
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📊 Coverage Summary
Detailed Coverage ReportsC++ Coverage DetailsPython Coverage DetailsPybind11 Coverage Details |
|
@MarcoEckhoff can you confirm this fixes things on your end? |
|
Here is the log file from the submitted python script before modification: |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.