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

Aperta
#1,311 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
backend, data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
10
Fork
8
Merge medio
6h 32m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FriendsofECCE/ECCE

Tutte le issue di FriendsofECCE/ECCE

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.