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

未关闭
#1,311 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c
领域
backend, data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C
星标
10
派生
8
平均合并
6 小时 32 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。