An inline custom basis loses the orbitals from results.h5 (two MO-of-diatomics examples)

Offen
#1,311 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c
Bereich
backend, data

Rechercherichtung

Start by comparing the shipped inputs and results.h5 files for ecceqm-H2_cation and ecceqm-He2_cation with their neutral partners. Trace how inline basis_data is parsed into basis records and how ResultsFromCalc uses flatBasis to validate orbital coefficients. Decide whether the general parser path or the two examples should change; done means both cation examples expose orbitals and their MO diagrams and density maps are available.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

data/client/examples/genchem/molecular-orbitals-of-diatomics/ecceqm-H2_cation and ecceqm-He2_cation ship

ok: no orbitals (the stored basis set does not match the orbital coefficients (or is not Gaussian))

Both carry a full Props/MO (12395 / 12410 bytes, 28 basis-function columns) plus MOBETA, ORBENG, ORBOCC and LOCMO. Their neutral partners ecceqm-H2 and ecceqm-He2 pass the check (ok: alpha tr(PS) 2.000000 of 2.0000, ... 4 AOs).

The difference is in the inputs. The two cations are the only diatomics in that topic that use

method uhf
basis custom
basis_data

while the neutrals use basis 6-31G*. An inline custom basis leaves no matching stored basis-set record, so the shell set and the coefficient block disagree (4 shells against 28 functions) and ResultsFromCalc falls back to the no-orbitals path.

Effect: two examples in the topic whose entire purpose is MO diagrams ship without orbitals in results.h5, so the MO diagram and density map are unavailable for exactly the two cases a student is asked to compare against the neutrals.

This is a different fault from #1282 (there the MO property reads back empty; here it reads fine and the basis record is missing), with the same visible result.

Two possible fixes, needs a decision:

  1. Store the inline basis_data as a basis-set record at parse time, so flatBasis finds the shells it needs. Fixes it for every code that accepts an inline basis.
  2. Change the two examples to a named basis. Cheaper, but loses whatever the custom basis was chosen to show — check the topic's notes before taking this route.

Found during the #1282 audit of the shipped example set; read from the shipped files, nothing rerun.

Vorherrschende Sprache
C
Sterne
10
Forks
8
Ø Merge
6 Std. 32 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus FriendsofECCE/ECCE

Alle Issues in FriendsofECCE/ECCE

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.