Skip to content

test(dfpt): audit raw Gamma response matrices and polar tensors - #8515

Open
Zanthoxylum wants to merge 1 commit into
deepmodeling:developfrom
Zanthoxylum:test-dfpt-gamma-validation-clean
Open

Zanthoxylum wants to merge 1 commit into
deepmodeling:developfrom
Zanthoxylum:test-dfpt-gamma-validation-clean

Conversation

@Zanthoxylum

@Zanthoxylum Zanthoxylum commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add paired strained-Si and polar NLCC-BN Autotest cases. Audit every raw
complex force-constant component and exported dielectric/Born component
after both runs finish. Reject missing warning logs, nonconvergence and
incomplete output. Add occupied-subspace gauge tests and a matrix-audit
regression that rejects a changed matrix even when its spectrum is preserved.

Scope

Tests, Autotest fixtures, a verbatim B pseudopotential and audit helpers
only; no production code is modified. The cases exercise the production
Gamma covariance and time-reversal paths.

Verification

  • Rebuilt the main executable and all 11 DFPT test targets with GCC 13.
  • ctest --test-dir build-gcc13 --output-on-failure -R "MODULE_DFPT|dfpt_freq_collector|dfpt_matrix_audit" passed 13 tests; 26 symmetry GTests passed.
  • Autotest (-n 0 -o 1 -j 4) with OMP_NUM_THREADS=1 and
    OPENBLAS_NUM_THREADS=1 passed 87 attributes: 62 across the four new cases
    and 25 Gamma-anchor properties; the six full-list Gamma anchor strings are
    unchanged.
  • Paired raw matrix maxima were 9.50e-10 (strained Si) and 4.10e-9 (NLCC BN)
    Ry/bohr^2; both polar-tensor audits passed their fixed component
    tolerances.
  • The dfpt_si_g anchor frequencies are bit-identical.
  • DFPT/CMake formatting and governance checks passed. No multi-rank or
    whole-repository test run was performed.

Tested tree: e090c5044

@Zanthoxylum Zanthoxylum added Refactor Refactor ABACUS codes Tests/Examples Issues/PR related to unit tests and integrate tests DFPT Density Functional Perturbation Theory labels Dec 4, 2026
Add paired strained-Si and polar NLCC-BN Autotest cases auditing every
raw complex force-constant component and exported dielectric/Born
component after both runs finish; reject missing warning logs,
nonconvergence and incomplete output. Add occupied-subspace gauge tests
and a matrix-audit regression that rejects a changed matrix even when
its spectrum is preserved.

Tests, Autotest fixtures, a verbatim B pseudopotential and audit
helpers only; no production code is modified.

Verification: rebuilt the main executable and all 11 DFPT test targets;
focused CTest, 26 symmetry GTests, Autotest 87 attributes (62 across
the four new cases plus 25 Gamma-anchor properties) and the unchanged
six-frequency Gamma anchor all pass; paired raw matrix maxima are
9.50e-10 (strained Si) and 4.10e-9 (NLCC BN) Ry/bohr^2. DFPT/CMake
formatting and staged governance checks passed.
@Zanthoxylum
Zanthoxylum force-pushed the test-dfpt-gamma-validation-clean branch from 7f03bb6 to e090c50 Compare December 4, 2026 13:27

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DFPT Density Functional Perturbation Theory Refactor Refactor ABACUS codes Tests/Examples Issues/PR related to unit tests and integrate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant