Commit 08bd7fa
dyzheng
Feat(deltaspin): enable first_order acceleration for nspin=4
Remove nspin_==2 restriction on first_order mode. For nspin=4:
- Skip spin_sign (scalar ±1) which doesn't apply to spinors
- Use direct delta_epsilon shift via λ_z component only
- PI_sub_diag from the complex HContainer cache provides correct
diagonal elements for the spinor structure
The first_order mode is an approximation (frozen wavefunctions),
but removing the hard guard allows it to be used as a fallback
when subspace mode is too expensive for nspin=4.1 parent 66696b6 commit 08bd7fa
1 file changed
Lines changed: 15 additions & 3 deletions
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
783 | 786 | | |
784 | 787 | | |
785 | 788 | | |
786 | | - | |
787 | 789 | | |
788 | 790 | | |
789 | 791 | | |
| |||
793 | 795 | | |
794 | 796 | | |
795 | 797 | | |
796 | | - | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
797 | 809 | | |
798 | 810 | | |
799 | 811 | | |
| |||
0 commit comments