Skip to content

Document how to run the Wannier90 interface tests - #8341

Merged
mohanchen merged 3 commits into
deepmodeling:developfrom
Stardust0831:docs/wannier-spn-test-readme
Nov 21, 2026
Merged

mohanchen merged 3 commits into
deepmodeling:developfrom
Stardust0831:docs/wannier-spn-test-readme

Conversation

@Stardust0831

@Stardust0831 Stardust0831 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add interfaces/Wannier90_interface/tests/README.md alongside test_interface.py and check_wannier_spn.py. It gives the pytest, CTest and direct MPI commands from that directory and links to the oxygen inputs for the spin-matrix regression.

The README describes the interface defaults covered by pytest and the numerical, postw90 and I/O checks in the end-to-end test.

Verification

Ran the following commands on SAI with pytest 7.4.4 and an MPI-enabled LCAO build with ScaLAPACK.

cd interfaces/Wannier90_interface/tests
PYTHONPATH=.. python -m pytest test_interface.py
ctest --test-dir ../../../build -R '^03_NAO_wannier_spn$' --no-tests=error --output-on-failure
OMP_NUM_THREADS=1 python3 check_wannier_spn.py wannier90.x postw90.x mpirun -n 4 abacus
OMP_NUM_THREADS=1 python3 check_wannier_spn.py wannier90.x postw90.x mpirun -n 1 abacus

Both pytest cases and the four-rank CTest passed. The direct runs checked all 546 complex elements, with maximum absolute errors of 4.121e-16 on four ranks and 3.357e-16 on one rank. Both runs also passed the postw90 and I/O diagnostic checks.

@Stardust0831 Stardust0831 changed the title Document the Wannier90 spin-matrix regression Document how to run the Wannier90 interface tests Nov 20, 2026

@ZhouXY-PKU ZhouXY-PKU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@mohanchen mohanchen added the Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS label Nov 21, 2026
@mohanchen
mohanchen merged commit c59bb4d into deepmodeling:develop Nov 21, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants