You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 993acb9
Browse filesBrowse the repository at this point in the historyBrowse files
Gaussian 16/09: offer solvation (SCRF) for HF as well (#98)
Reported from a live session as "there's NO solvent option anywhere".
It was not missing altogether -- it was gated by theory category, and
the gating was wrong: Gaussian offered SCRF only for DFT and MP, so a
plain HF job had none. Measured with tests/dialogs, which runs the real
dialogs once per category and records every widget they build.
Gaussian's SCRF works with HF -- "#p HF/6-31G* SCRF(PCM)" is an
ordinary calculation, and for many people the first solvated job they
would try. The generator side was never the blocker: ai.gauss{09,16}'s
SCRFOptions is driven by UseSCRF/SCRF/Solvent, none of which is
theory-specific. The box simply lived inside the DFT and MP branches.
The block was duplicated verbatim in both branches, so it is now one
addSolvationBox() method called from DFT, MP and SCF. The refactor was
checked to be behaviour-neutral before SCF was added: DFT and MP built
exactly the same widgets as before.
CheckDependency()'s guard is extended to match, and says why it has to:
naming a category that does not build the widgets dereferences
attributes that do not exist and takes the whole dialog down -- which
is precisely what ged03theory.py did, fixed earlier this week.
Verified per category: SCF/DFT/MP now all build UseSCRF and Solvent
with no construction error; CC and CI deliberately unchanged, since
whether they should have it is a separate question left on #98.
Not applied to ged03/ged98: both codes are disconnected from the New
Calculation menu, so the same change there is unverifiable and
pointless until they are reconnected.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb
0 commit comments