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

Ouverte
#1,311 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
c
Domaine
backend, data

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C
Étoiles
10
Forks
8
Merge moyen
6 h 32 min
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de FriendsofECCE/ECCE

Toutes les issues de FriendsofECCE/ECCE

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.