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

オープン
#1,311 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FriendsofECCE/ECCE のほかの issue

FriendsofECCE/ECCE の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。