Commit 32094b5
committed
DeltaP Phase C.3: refactor esolver_ks_lcao.cpp to use deltap_common.h
Replace inline dp_escon computation with shared deltap_common::compute_dp_escon().
This reduces code duplication and ensures PW and LCAO paths use identical
constraint energy correction formulas.
Regression tests pass:
BN LCAO: γ=(3.999, 3.498), E-field=-1.154e-02 V/A
H2O LCAO: γ=(-6.40, -3.17, -3.17), escon-corrected
H2O PW: E=-417.011837 eV (unchanged)1 parent b64368a commit 32094b5
1 file changed
Lines changed: 5 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
792 | 780 | | |
793 | 781 | | |
794 | 782 | | |
| |||
0 commit comments